[Possible Bug-Python2.3.2] MD5 module?

Bengt Richter bokr at oz.net
Thu Oct 14 08:33:37 CEST 2004

On Wed, 13 Oct 2004 19:07:43 -0400, Jean-Guillaume Paradis <jean-guillaume.paradis at usherbrooke.ca> wrote:

>    I've tried to use the md5 module of python 2.3.3, and the results of 
>a hash do not concord with those of reference sites such as 
>    I call it using
>    import md5
>    m = md5.new()
>    m.update("a")
>    print m.hexdigest()
>    I have not checked if the problem is the same on more recent version 
Why don't you show the result that you think is wrong instead of making useless
work for anyone interested?

Here is what I get:

 >>> import md5
 >>> m = md5.new()
 >>> m.update("a")
 >>> print m.hexdigest()

Now if you do the same with your reference implementation, we can get somewhere ;-)
BTW, I seem to have the same version as you (if you are on windows):

 >>> import sys
 >>> sys.version
 '2.3.2 (#49, Oct  2 2003, 20:02:00) [MSC v.1200 32 bit (Intel)]'

Bengt Richter

More information about the Python-list mailing list