note 61880 deleted from function.crc32 by nlopess
| From: | nlopess@php.net | Date: | Sun, 21 Jan 2007 15:50:58 +0000 |
| Subject: | note 61880 deleted from function.crc32 by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-121996@lists.php.net to get a copy of this message | ||
Note Submitter: info at b1g dot de
----
I think nathanzadoks at yahoo dot co dot uk's function is not very good for checksums - it does
not make any sense to build a md5 hash from a crc32 hash - MD5 (32Byte) is more precise then CRC32
(4Byte), so the MD5-encoding would not make sense. As PHP returns the MD5 hash in ASCII
representation already, you do not need to base64-encode it, too. So a simple
md5($content)
or
sha1($content)
would be more precise and secure.