note 93110 deleted from function.md5 by danbrown
| From: | danbrown@php.net | Date: | Mon, 24 Aug 2009 17:04:08 +0000 |
| Subject: | note 93110 deleted from function.md5 by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-159837@lists.php.net to get a copy of this message | ||
Note Submitter: lennytmp at yandex dot ru
----
I was trying to get md5($str, true) - in php 4.0 in order to encode data for online bank. In php 4.0
only one parameter is accepted.
That's the function in php 4.0
function raw_md5($h)
{
$h=md5($h);
if (!is_string($h)) return null;
$r='';
for ($a=0; $a<strlen($h); $a+=2)
{
$r.=chr(hexdec($h{$a}.$h{($a+1)}));
}
return $r;
}
Thank's for the guys: http://op-team.ru/news/august23_rawmd5.html