[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 md

[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