note 115951 added to function.hash-algos
| From: | MiguelFlorido | Date: | Sat, 18 Oct 2014 11:04:46 +0000 |
| Subject: | note 115951 added to function.hash-algos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-200677@lists.php.net to get a copy of this message | ||
Ansewring to holdoffhunger avoid crc32, the are different results because the crc32(); use the
algorithm 'crc32b'. To check this only have to write:
echo hash('crc32b', 'The quick brown fox jumped over the lazy dog.'),
"\n";
echo dechex (crc32('The quick brown fox jumped over the lazy dog.'));
And check that both have the same results:
82a34642
82a34642
----
Server IP: 80.64.47.13
Probable Submitter: 88.10.0.34
----
Manual Page -- http://php.net/manual/en/function.hash-algos.php
Edit -- https://master.php.net/note/edit/115951
Del: integrated -- https://master.php.net/note/delete/115951/integrated
Del: useless -- https://master.php.net/note/delete/115951/useless
Del: bad code -- https://master.php.net/note/delete/115951/bad+code
Del: spam -- https://master.php.net/note/delete/115951/spam
Del: non-english -- https://master.php.net/note/delete/115951/non-english
Del: in docs -- https://master.php.net/note/delete/115951/in+docs
Del: other reasons-- https://master.php.net/note/delete/115951
Reject -- https://master.php.net/note/reject/115951
Search -- https://master.php.net/manage/user-notes.php