php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #62063 None of the common and decent non-crypto hash functions are included in PHP
Submitted: 2012-05-18 18:29 UTC Modified: -
Votes:10
Avg. Score:4.2 ± 0.9
Reproduced:7 of 7 (100.0%)
Same Version:3 (42.9%)
Same OS:3 (42.9%)
From: slogger at lavabit dot com Assigned:
Status: Open Package: *Encryption and hash functions
PHP Version: Irrelevant OS: Any/All
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: slogger at lavabit dot com
New email:
PHP Version: OS:

 

 [2012-05-18 18:29 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Aug 24 15:01:27 2019 UTC