Skip to content

Instantly share code, notes, and snippets.

@neopunisher
Created July 15, 2013 13:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neopunisher/6000040 to your computer and use it in GitHub Desktop.
Save neopunisher/6000040 to your computer and use it in GitHub Desktop.
Test md5 hash collision and message extension
wget http://marc-stevens.nl/research/md5-1block-collision/message1.bin
wget http://marc-stevens.nl/research/md5-1block-collision/message2.bin
md5sum *.bin
#008ee33a9d58b51cfeb425b0959121c9 message1.bin
#008ee33a9d58b51cfeb425b0959121c9 message2.bin
echo "some extra" > extra.txt
cat message1.bin extra.txt | md5sum
#c4dda4dbd429421349c0ca6172cc2e95
cat message2.bin extra.txt | md5sum
#c4dda4dbd429421349c0ca6172cc2e95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment