scratch that, new code is below for your perusal:

from Crypto.PublicKey import RSA
import hashlib

def repeat_a_lot():
    count = 0
    while count < 20:
        m = RSA.generate(1024)
        b = hashlib.sha1()
        b.update(str(m))
        a = b.hexdigest()
        print a[:16] + '.onion'
        count += 1
repeat_a_lot()


Thanks again, Scott
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to