[Tutor] All possible 16 character alphanumeric strings?

Scurvy Scott etanes.rm at gmail.com
Sun Sep 16 04:03:18 CEST 2012

> That list would fill all the PC's on the planet a few billions times.
> The number of items in the list has 25 digits in it.  print 32**16
> I actually should've specified that the list I'm trying to create would
not start at say "0000000000000001".
I'm attempting to generate all possible .onion addressess which look like "
kpvz7ki2v5agwt35.onion" for instance.

The TOR network generates these numbers with this method:
"If you decide to run a hidden service Tor generates an
RSA-1024<http://en.wikipedia.org/wiki/RSA>keypair. The .onion name is
computed as follows: first the
 SHA1 <http://en.wikipedia.org/wiki/SHA_hash_functions> hash of the
 ASN.1 <http://en.wikipedia.org/wiki/Abstract_Syntax_Notation_One> public
key is calculated. Afterwards the first half of the hash is encoded to
Base32 <http://en.wikipedia.org/wiki/Base32> and the suffix ".onion" is
added. Therefore .onion names can only contain the digits 2-7 and the
letters a-z and are exactly 16 characters long."
-from the Tor Hidden Services DOC page.

I'm not sure if that changes anything as far as the impossible size of my

Again, any input is useful.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120915/4130ec8a/attachment.html>

More information about the Tutor mailing list