[Tutor] md5 message digest algorithm

Ales Zemene ales at mur.at
Thu Dec 22 13:54:54 CET 2005


hi, suprising for me is that making .py file:
import md5
hash = md5.new()
and running it produces :
AttributeError: 'module' object has no attribute 'new'

and similar : 
from Crypto.Hash import MD5
ImportError: cannot import name MD5

but in both cases it works on python command line intepretter.

Ales
-- 


More information about the Tutor mailing list