hashbittorrentinfo-hash

How to generate all possible Torrent info hashes?


How do I generate all possible torrent info hashes? I am looking for an elegant way to do so. python code would be immensely appreciated, any other langues are cool too.


Solution

    1. Start with a hash of all 0
    2. Increment by 1.
    3. Go to step 2.

    This will obviously run for quite awhile, but will generate all possible torrent info hashes.