md5

Andreas Jung andreas at andreas-jung.com
Thu Jul 19 18:46:52 EDT 2001


hexdigest() works at least under Python 2.1. Maybe this function
has been introduced after Python 1.5.2. Are you sure you are reading
in the 1.5.2 docs ? :-)

Andreas

----- Original Message -----
From: "Gustavo Vieira Goncalves Coelho Rios" <gustavo at ifour.com.br>
To: <python-list at python.org>
Sent: Donnerstag, 19. Juli 2001 16:40
Subject: md5


> 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
>
> --
> http://mail.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list