MD5()

ed18hg ed18hg at brllsouth.net
Tue Oct 26 22:37:47 EDT 2004


Hello,
I'm using this code to get the MD5 of the numbers 0-9. How can I loop 
through the combination of all lowercase letters and 0-9. I read in the 
documentation the string operation ascii_lowercase but I'm a bit confused on 
how to combine it with integers. Thanks in advance.

for i in xrange(10):
 import md5
 m=md5.new()
 m.update("%i"%i)
 print"i=",i,"md5(i)=",m.hexdigest() 





More information about the Python-list mailing list