Max
Max

Reputation: 4408

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.

Upvotes: 0

Views: 656

Answers (1)

Yann Ramin
Yann Ramin

Reputation: 33197

  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.

Upvotes: 2

Related Questions