Req #62063 [Opn]: None of the common and decent non-crypto hash functions are included in PHP

From: Date: Mon, 08 Nov 2021 18:41:17 +0000
Subject: Req #62063 [Opn]: None of the common and decent non-crypto hash functions are included in PHP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237626@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62063&edit=1 ID: 62063 Updated by: cmb@php.net Reported by: slogger at lavabit dot com Summary: None of the common and decent non-crypto hash functions are included in PHP Status: Open Type: Feature/Change Request Package: *Encryption and hash functions Operating System: Any/All PHP Version: Irrelevant Block user comment: N Private report: N New Comment: At least some good news : Murmur3 is supported as of PHP 8.1.0[1]. [1] <https://www.php.net/manual/en/migration81.new-features.php#migration81.new-features.hash.murmurhash3> Previous Comments: ------------------------------------------------------------------------ [2015-05-28 12:13:03] cmb@php.net Related To: Bug #68109 ------------------------------------------------------------------------ [2012-05-18 18:29:29] slogger at lavabit dot com Description: ------------ It'd be nice to see a module/class/library/function that supported the good non-cryptographic hash functions which can be quite useful for some situations. For example (particularly) CityHash, Jenkins, Murmur3, and Spooky. They can be a nice performance boost for situations where you need to use lots of hashes and a cryptographic hash isn't needed. Obviously you can just use sha for most things you could use a non-crypto hash for, but it'd still be nice to have them available, especially with the rise of 'big-data' type applications. For reference, http://blog.aggregateknowledge.com/2012/02/02/choosing-a-good-hash-function-part-3/ talks about selection, use case and comparisons, which might be interesting. Test script: --------------- Test script for something that doesn't exist doesn't make sense. Expected result: ---------------- NA Actual result: -------------- NA ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62063&edit=1

« previous php.bugs (#237626) next »