PHP 的 crc32、crc32b 以及 hash_file
PHP 的 crc32、crc32b 以及 hash_file
查 PHP 上 CRC32 的資料時,查到讓人噴飯的 comment:
For those who are wondering, there appears to be no fundamental difference between hash_file('md5')/hash_file('sha1') and md5_file()/sha1_file(). They produce identical output and have comparable performance. There is, however, a difference between hash_file('crc32') and something silly like crc32(file_get_contents()). crc32(file_get_contents())'s results are…
View On WordPress












