Hi,

I have small hmac encryption programm by python, but always complain that
hmac module does not have attribute new, do I need to install anything
additinal in my laptop? I am using python 2.5.1

import hmac
import md5
import sha
myhmac = hmac.new("test")


Traceback (most recent call last):
  File "C:\Python25\hw_script\hmac.py", line 1, in <module>
    import hmac
  File "C:\Python25\hw_script\hmac.py", line 4, in <module>
    myhmac = hmac.new("test")
AttributeError: 'module' object has no attribute 'new'


Thank you very much,


Harold
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to