Created
April 11, 2014 14:44
-
-
Save guoxiao/10474621 to your computer and use it in GitHub Desktop.
md5 single block collision
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib | |
import array | |
a = array.array('I', [ | |
0x6165300e,0x87a79a55,0xf7c60bd0,0x34febd0b, | |
0x6503cf04,0x854f709e,0xfb0fc034,0x874c9c65, | |
0x2f94cc40,0x15a12deb,0x5c15f4a3,0x490786bb, | |
0x6d658673,0xa4341f7d,0x8fd75920,0xefd18d5a | |
]) | |
b = array.array('I', [ | |
0x6165300e,0x87a79a55,0xf7c60bd0,0x34febd0b, | |
0x6503cf04,0x854f749e,0xfb0fc034,0x874c9c65, | |
0x2f94cc40,0x15a12deb,0xdc15f4a3,0x490786bb, | |
0x6d658673,0xa4341f7d,0x8fd75920,0xefd18d5a | |
]) | |
print(hashlib.md5(a).hexdigest()) | |
print(hashlib.md5(b).hexdigest()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment