A guy gave me these codes and said thisi s better md5 function
function en_bmd5($txt,$pow,$tng){
$exs = explode(",",$pow);
$exu = explode(",",$tng);
$ret = "";
if(count($exu) != count($exs)){
return "1";
}else{
for($i=0;$i<strlen($txt);$i++){
if($i != 0){
$ret .= "-";
}
$str = $txt{$i};
$orn = ord($str);
for($j=0;$j<count($exu);$j++){
$num= $exs[$j];
$mt = $exu[$j];
if($mt == "a"){
$orn += $num;
}else if($mt == "s"){
$orn -= $num;
}else if($mt == "m"){
$orn *= $num;
}
}
$ret .= $orn;
}
return $ret;
}
}
function de_bmd5($txt,$pow,$tng){
$exs = explode(",",$pow);
$ext = explode("-",$txt);
$exu = explode(",",$tng);
if(count($exu) != count($exs)){
return "Hacking Detected!";
}else{
$ret = "";
for($i=0;$i<count($ext);$i++){
$orn = $ext[$i];
for($j=(count($exu)-1);$j>=0;$j--){
$num = $exs[$j];
$mt = $exu[$j];
if($mt == "a"){
$orn -= $num;
}else if($mt == "s"){
$orn += $num;
}else if($mt == "m"){
$orn /= $num;
}
}
$ret .= chr($orn);
}
return($ret);
}
}
Can you please tell me how is this better than the original md5 function?