Calculating the info-hash of a torrent file
Make sure you don’t have a newline at the end of the file, you may also want to make sure it ends with an ‘e’. The info-hash of a torrent file is the SHA-1 hash of the info-section (in bencoded form) from the .torrent file. Essentially you need to decode the file (it’s bencoded) and … Read more