|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #78067 blake2b hash support
Submitted: 2019-05-25 21:53 UTC Modified: 2020-04-19 14:33 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: divinity76 at gmail dot com Assigned: cmb (profile)
Status: Duplicate Package: hash related
PHP Version: Next Minor Version OS: irrelevant
Private report: No CVE-ID: None
 [2019-05-25 21:53 UTC] divinity76 at gmail dot com
i wish for blake2b to be natively supported in PHP, the TL;DR is that it's an excellent replacement for the broken SHA1, being faster and more secure. longer version:

BLAKE2b is a very fast cryptographically secure hash function (faster than sha1/md5, which themselves are considerably faster than sha2/sha3, but sha1 & md5 is broken), provides security superior to SHA-2 and similar to that of SHA-3, and it's predecessor (blake) was a SHA-3 finalist in the competition to become the SHA-3 standard, you can read more about it at

(one more thing, blake2b supports variable output sizes between 1-64 bytes inclusive, but the de-facto output size is 64 bytes. while an argument could be made for supporting a "blake2b,10" syntax for output size, i think such a feature should get it's own dedicated feature request, that would prove that anyone is actually interested other sizes, i am not.)

Test script:

var_dump(hash("blake2b", "test", false));

Expected result:
string(128) "a71079d42853dea26e453004338670a53814b78137ffbed07603a41d76a483aa9bc33b582f77d30a65e6f29a896c0411f38312e1d66e0bf16386c86a89bea572"

Actual result:
Warning: hash(): Unknown hashing algorithm: blake2b in /in/IJHSi on line 3


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-04-19 14:33 UTC]
-Status: Open +Status: Duplicate -Assigned To: +Assigned To: cmb
 [2020-04-19 14:33 UTC]
Duplicate of bug #68425.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Oct 04 10:05:51 2022 UTC