Re: new is missing in module hmac SHA-based encryption function in Python

2007-11-21 Thread Chris Mellon
On Nov 21, 2007 10:50 AM, Matt Nordhoff <[EMAIL PROTECTED]> wrote: > Hailong Wang wrote: > > Matt, > > > > Thanks for response, I changed my script to hw_hmac.py, but still does > > not work. > > > > Traceback (most recent call last): > > File "C:/Python25/hw_script/my_hmac.py", line 1, in > >

Re: new is missing in module hmac SHA-based encryption function in Python

2007-11-21 Thread Matt Nordhoff
Hailong Wang wrote: > Matt, > > Thanks for response, I changed my script to hw_hmac.py, but still does > not work. > > Traceback (most recent call last): > File "C:/Python25/hw_script/my_hmac.py", line 1, in > import hmac > File "C:\Python25\hw_script\hmac.py", line 4, in > myhmac =

Re: new is missing in module hmac SHA-based encryption function in Python

2007-11-21 Thread Hailong Wang
Matt, Thanks for response, I changed my script to hw_hmac.py, but still does not work. Traceback (most recent call last): File "C:/Python25/hw_script/my_hmac.py", line 1, in import hmac File "C:\Python25\hw_script\hmac.py", line 4, in myhmac = hmac.new("test") AttributeError: 'modul

Re: new is missing in module hmac SHA-based encryption function in Python

2007-11-21 Thread Matt Nordhoff
Hailong Wang wrote: > 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") > > > T

new is missing in module hmac SHA-based encryption function in Python

2007-11-21 Thread Hailong Wang
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): F