note 99553 deleted from function.md5 by joey
| From: | joey@php.net | Date: | Sun, 17 Jul 2011 08:49:04 +0000 |
| Subject: | note 99553 deleted from function.md5 by joey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-181623@lists.php.net to get a copy of this message | ||
Note Submitter: fpnjie at gmail dot com
----
Very ugly way to combine.
<?php
$salt = md5("1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz");
$password = hash( 'MD5',$salt );
$hash = $password . $salt;
$rand = rand(1, 256)%4;
for ( $i = 0; $i < $rand; $i++ ) {
$hash = hash('md5',$hash );
}
echo $hash, '<br>';
echo (microtime(1)-$time)*10000,': time in ms';
?>