[Tutor] How to run this block of code dozens of times
Scurvy Scott
etanes.rm at gmail.com
Mon Sep 17 01:56:04 CEST 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120916/55721604/attachment.html>
More information about the Tutor
mailing list