[Tutor] md5 message digest algorithm

2005-12-22 Thread Ales Zemene
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.

Re: [Tutor] md5 message digest algorithm

2005-12-22 Thread Kent Johnson
Ales Zemene wrote: 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' By any chance is your program called md5.py? If so it is being imported instead of the md5 library module. and