md5 consistent across platforms/Python versions?

Skip Montanaro skip at pobox.com
Tue Jul 15 11:14:25 EDT 2003


    Gary> Can someone tell me whether an MD5 hash using Python's MD5 library
    Gary> IS guaranteed to return the same results for the same input
    Gary> string, across platforms and Python versions?

Gary,

Yes, it is.  MD5 is inherently platform- and language-independent.  The
test_md5.py script in the Python distribution uses the same test inputs as
found in RFC 1321 and produces the same output as the C reference
implementation contained in the RFC.

Skip





More information about the Python-list mailing list