<?xml version="1.0" encoding="windows-1252"?>
<node id="386281" title="Re: On showing the weakness in the MD5 digest function and getting bitten by scalar context" created="2004-08-27 04:14:45" updated="2005-06-02 23:02:19">
<type id="11">
note</type>
<author id="80749">
tachyon</author>
<data>
<field name="doctext">
&lt;p&gt;&lt;i&gt; To find another string that maps to the same digest (i.e. a collision in the MD5-space) should theoretically take 2^128 steps.&lt;/i&gt;
&lt;p&gt;Actually that is right and wrong. Hash collisions conform to the &lt;a href="http://www.itsecurity.com/dictionary/bday.htm"&gt;Birthday Paradox&lt;/a&gt; which says that if you have 23 people in a room there is a 50% probability that 2 people will share a birthday (have a collision). This 'paradox' applies to hashes as well. For example you have a 50% probability of a collision in a 32 bit hash after a mere 77163 tries (roughly 2^16 ie nothing like 2^32)
&lt;h4&gt;Update&lt;/h4&gt;
&lt;p&gt;Corrected technical inexactitude. The birthday paradox is the correct answer if you simply want a collision. To get a specific collision with a given digest it is not.
&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-80749"&gt;
&lt;p&gt;cheers
&lt;p&gt;&lt;font color="#0000ff"&gt;tachyon&lt;/font&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
386193</field>
<field name="parent_node">
386193</field>
</data>
</node>
