Forum Moderators: coopster

Message Too Old, No Replies

md5 asymmetry question

         

Xuefer

3:33 am on Oct 26, 2003 (gmt 0)

10+ Year Member




<?php
$c1 = ...;
$c2 = ...;

$sumA = md5($c1 . $c2);
$mc1 = md5($c1);
$mc2 = md5($c2);
$sumB = md5($mc1 . $mc2);
?>

i don't expect $sumA == $sumB
but is $sumA alsmost same asymmetry(vary) as $sumB?

killroy

9:21 am on Oct 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I wouldn't think so, the md5 was designe with a different objectivew, and thise relationship is lost in the algorithm.

SN