Created
July 30, 2016 15:33
-
-
Save olof/236abfb93ff3478a9031171ade22d98e to your computer and use it in GitHub Desktop.
Get info hash from torrent file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
perl -M5.010 \ | |
-MFile::Slurp -MYAML -MBencode=bdecode,bencode -MDigest::SHA=sha1_hex \ | |
-e 'say sha1_hex bencode bdecode(scalar read_file shift)->{info}' \ | |
<torrentfile> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment