note 93110 added to function.md5
| From: | lennytmp at yandex dot ru | Date: | Mon, 24 Aug 2009 08:20:12 +0000 |
| Subject: | note 93110 added to function.md5 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-159822@lists.php.net to get a copy of this message | ||
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
----
Server IP: 78.41.111.4
Probable Submitter: 93.80.72.169
----
Manual Page -- http://www.php.net/manual/en/function.md5.php
Edit -- https://master.php.net/note/edit/93110
Del: integrated -- https://master.php.net/note/delete/93110/integrated
Del: useless -- https://master.php.net/note/delete/93110/useless
Del: bad code -- https://master.php.net/note/delete/93110/bad+code
Del: spam -- https://master.php.net/note/delete/93110/spam
Del: non-english -- https://master.php.net/note/delete/93110/non-english
Del: in docs -- https://master.php.net/note/delete/93110/in+docs
Del: other reasons-- https://master.php.net/note/delete/93110
Reject -- https://master.php.net/note/reject/93110
Search -- https://master.php.net/manage/user-notes.php