note 115386 added to function.hash-algos
| From: | user | Date: | Wed, 16 Jul 2014 11:47:59 +0000 |
| Subject: | note 115386 added to function.hash-algos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199942@lists.php.net to get a copy of this message | ||
The below will display all the hash results for each of the algos, and will tell you the strings
length so you can then pick which algos hash suits your needs.
foreach (hash_algos() as $key => $value){
$hash=hash($value, 'The quick brown fox jumped over the lazy dog.');
$s[$value.'('.strlen($hash).')']=$hash;
}
print_r($s);
----
Server IP: 72.52.91.14
Probable Submitter: 2.122.159.38
----
Manual Page -- http://php.net/manual/en/function.hash-algos.php
Edit -- https://master.php.net/note/edit/115386
Del: integrated -- https://master.php.net/note/delete/115386/integrated
Del: useless -- https://master.php.net/note/delete/115386/useless
Del: bad code -- https://master.php.net/note/delete/115386/bad+code
Del: spam -- https://master.php.net/note/delete/115386/spam
Del: non-english -- https://master.php.net/note/delete/115386/non-english
Del: in docs -- https://master.php.net/note/delete/115386/in+docs
Del: other reasons-- https://master.php.net/note/delete/115386
Reject -- https://master.php.net/note/reject/115386
Search -- https://master.php.net/manage/user-notes.php