md5

Gustavo Vieira Goncalves Coelho Rios gustavo at ifour.com.br
Thu Jul 19 17:40:31 EDT 2001


Dear Gentlemen,

I am a python beginner, but since i am facing problems with encryption related to MD5 method, i respectfuly request your help.
Precisely, the problem i am facing is related to hexdigest() method. Here is what i am getting:

Python 1.5.2 (#2, Jul  1 2001, 22:33:59)  [GCC 2.95.3 [FreeBSD] 20010315 (release on freebsd4
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import md5
>>> a = md5.new('Test')
>>> a.digest()
'\014\274f\021\365T\013\320\200\2328\215\311Za['
>>> b = md5.new('Test 1')
>>> b.hexdigest()
Traceback (innermost last):
  File "<stdin>", line 1, in ?
AttributeError: hexdigest
>>> 

As you may see, the hexdigest() method does not work, why?

Would you mind correctind me in order to get a digest stream using hexdigest() method?

Thanks a lot for your time and cooperation.
Best regards,

Gustavo Rios


-- 
It is impossible to experience one's death objectively and still carry
a tune.
		-- Woody Allen




More information about the Python-list mailing list