note 95466 deleted from function.crc32 by thiago
| From: | thiago@php.net | Date: | Mon, 04 Jan 2010 18:07:24 +0000 |
| Subject: | note 95466 deleted from function.crc32 by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-164630@lists.php.net to get a copy of this message | ||
Note Submitter: martinlatter at NOSPAMhotmail dot com
----
Wondered about the differences in crc32 calculation despite differing return values.
<?php
echo dechex(crc32('12345')) . "\n";
echo hash('crc32', '12345') . "\n";
echo hash('crc32b', '12345');
?>
->
cbf53a1c
b8486542
cbf53a1c
And a site such as http://rogeriopvl.com/hashr/ provides
further verification.
So PHP's crc32() calculates crc32b.