{"id":95,"date":"2004-08-18T08:30:16","date_gmt":"2004-08-18T07:30:16","guid":{"rendered":"http:\/\/www.nobugs.org\/blog\/archives\/2004\/08\/18\/md5sha-collisions-cont\/"},"modified":"2004-08-18T08:32:36","modified_gmt":"2004-08-18T07:32:36","slug":"md5sha-collisions-cont","status":"publish","type":"post","link":"https:\/\/www.nobugs.org\/blog\/archives\/2004\/08\/18\/md5sha-collisions-cont\/","title":{"rendered":"MD5\/SHA collisions cont"},"content":{"rendered":"<p>Now that the updated paper has been published, here is how to see the collisions for yourself:<\/p>\n<p>1. Create messageA.pl, containing the following:<\/p>\n<pre>\r\n#!\/usr\/bin\/perl\r\nmy $p = \r\n\"d131dd02c5e6eec4693d9a0698aff95c2fcab58712467eab4004583eb8fb7f89\" .\r\n\"55ad340609f4b30283e488832571415a085125e8f7cdc99fd91dbdf280373c5b\" .\r\n\"d8823e3156348f5bae6dacd436c919c6dd53e2b487da03fd02396306d248cda0\" .\r\n\"e99f33420f577ee8ce54b67080a80d1ec69821bcb6a8839396f9652b6ff72a70\";\r\nprint pack(\"H*\", $p);\r\n<\/pre>\n<p>2. Also create messageB.pl containing the following:<\/p>\n<pre>\r\n#!\/usr\/bin\/perl\r\nmy $p = \r\n\"d131dd02c5e6eec4693d9a0698aff95c2fcab50712467eab4004583eb8fb7f89\" .\r\n\"55ad340609f4b30283e4888325f1415a085125e8f7cdc99fd91dbd7280373c5b\" .\r\n\"d8823e3156348f5bae6dacd436c919c6dd53e23487da03fd02396306d248cda0\" .\r\n\"e99f33420f577ee8ce54b67080280d1ec69821bcb6a8839396f965ab6ff72a70\";\r\nprint pack(\"H*\", $p);\r\n<\/pre>\n<p>3. Download md5.pl from <a href=\"http:\/\/www.cypherspace.org\/adam\/rsa\/md5.html\">here<\/a><\/p>\n<p>4. Verify it works by doing &#8220;echo -n abc | md5.pl&#8221;.  You should get 900150983cd24fb0d6963f7d28e17f72<\/p>\n<p>5. Run &#8220;messageA.pl | md5.pl&#8221; and &#8220;messageB.pl | md5.pl&#8221; and you should get the same hash value (79054025255fb1a26e4bc422aef54eb4)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now that the updated paper has been published, here is how to see the collisions for yourself: 1. Create messageA.pl, containing the following: #!\/usr\/bin\/perl my $p = &#8220;d131dd02c5e6eec4693d9a0698aff95c2fcab58712467eab4004583eb8fb7f89&#8221; . &#8220;55ad340609f4b30283e488832571415a085125e8f7cdc99fd91dbdf280373c5b&#8221; . &#8220;d8823e3156348f5bae6dacd436c919c6dd53e2b487da03fd02396306d248cda0&#8221; . &#8220;e99f33420f577ee8ce54b67080a80d1ec69821bcb6a8839396f9652b6ff72a70&#8221;; print pack(&#8220;H*&#8221;, $p); 2. Also create messageB.pl containing the following: #!\/usr\/bin\/perl my $p = &#8220;d131dd02c5e6eec4693d9a0698aff95c2fcab50712467eab4004583eb8fb7f89&#8221; . &#8220;55ad340609f4b30283e4888325f1415a085125e8f7cdc99fd91dbd7280373c5b&#8221; . &#8220;d8823e3156348f5bae6dacd436c919c6dd53e23487da03fd02396306d248cda0&#8221; . &#8220;e99f33420f577ee8ce54b67080280d1ec69821bcb6a8839396f965ab6ff72a70&#8221;; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-95","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/posts\/95","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/comments?post=95"}],"version-history":[{"count":0,"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/posts\/95\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/media?parent=95"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/categories?post=95"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/tags?post=95"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}