| Newsgroups |
php.notes |
| Message-ID |
<[email protected]> |
Comparison between hash algorithms.
<?
$algos = hash_algos();
$word="hola";
foreach($algos as $algo)
{
echo $algo.": ";
$time=microtime(1);
echo hash($algo, $word);
echo "<br>".(microtime(1)-$time)."<br><hr>";
}
?>
unless you set your server up specially, you have to use
<?php and not <? at the beginning, or the code will spit out as html without any php processed. so make note of that.
----
Server IP: 209.41.74.194
Probable Submitter: 72.94.171.34
----
Manual Page -- http://www.php.net/manual/en/function.hash.php
Edit -- https://master.php.net/note/edit/86186
Del: integrated -- https://master.php.net/note/delete/86186/integrated
Del: useless -- https://master.php.net/note/delete/86186/useless
Del: bad code -- https://master.php.net/note/delete/86186/bad+code
Del: spam -- https://master.php.net/note/delete/86186/spam
Del: non-english -- https://master.php.net/note/delete/86186/non-english
Del: in docs -- https://master.php.net/note/delete/86186/in+docs
Del: other reasons-- https://master.php.net/note/delete/86186
Reject -- https://master.php.net/note/reject/86186
Search -- https://master.php.net/manage/user-notes.php