binary pass to hex string:
function Mbin2string($binstr)
{
$out = "0x";
for($q=0; $q < strlen($binstr); $q++) {
$w = dechex(ord($binstr[$q]));
if(strlen($w)==1) $w = '0'.$w;
$out .= $w;
}
$out = strtoupper($out);
$out[1] = 'x';
return $out;
}
Quote:
Originally Posted by testdude
u cant decrypt a password, the encryption is a 1-way encryption and cant be undone...
|
So not true :-))