Info Hash

Other platforms, generic questions.
Post Reply
macuser

Info Hash

Post by macuser »

I can not get a valid comparison between the Info Hash as shown on qBittorent and downloaded movie files. Can anyone advise the following please:
1) What algorithm is used for the Info Hash; and
2) What does the qBittorent Info Hash comprise, is it only the video file or is it the full downloaded folder.

Many thanks
Freonpsandoz

Re: Info Hash

Post by Freonpsandoz »

The info hash is computed from the 'info' section of the .torrent file. You should be able to use a scripting language like Perl or python that has 'bencode' and sha1 libraries to decode the file, bencode the 'info' key and compute the sha1 hash of the bencoded 'info' section. This does not, however, work for .torrent files that I created using qBittorrent 4.4.0. I'm trying to figure out why.
Post Reply