[issue17891] Wrong MD5 calculation on really long strings and the Hashlib

2013-05-02 Thread Alonso Vidales
Alonso Vidales added the comment: Seems a problem with the system libs (I use MacOS 10.7.5), I just create a file with 6227020800 'a' chars on a Linux env, and the result is: 8adbd18519be193db41dd5341a260963 I'll try to confirm this. root@tras2:/var/tmp# pypy create_input.py root@tras2:/var/

[issue17891] Wrong MD5 calculation on really long strings and the Hashlib

2013-05-02 Thread Charles-François Natali
Charles-François Natali added the comment: I'm getting the same hash as CPython with md5sum and openssl, on Linux: $ wc -c data 6227020800 data $ md5sum data 8adbd18519be193db41dd5341a260963 data $ openssl md5 data MD5(data)= 8adbd18519be193db41dd5341a260963 So it's correct, and your system's

[issue17891] Wrong MD5 calculation on really long strings and the Hashlib

2013-05-02 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue17891] Wrong MD5 calculation on really long strings and the Hashlib

2013-05-02 Thread Alonso Vidales
New submission from Alonso Vidales: Taking part on a contest I found a bug working with a string of 6227020800 characters, all the characters are the 'a' char. When I execute: hashlib.md5(string).hexdigest() On Python, is takes a pair of seconds (need more to calculate this md5, I think that