Skip to content

Instantly share code, notes, and snippets.

@guoxiao
Created April 11, 2014 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guoxiao/10474621 to your computer and use it in GitHub Desktop.
Save guoxiao/10474621 to your computer and use it in GitHub Desktop.
md5 single block collision
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