Req #78067 [Opn->Dup]: blake2b hash support
| From: | cmb@php.net | Date: | Sun, 19 Apr 2020 14:33:24 +0000 |
| Subject: | Req #78067 [Opn->Dup]: blake2b hash support | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-226670@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78067&edit=1
ID: 78067
Updated by: cmb@php.net
Reported by: divinity76 at gmail dot com
Summary: blake2b hash support
-Status: Open
+Status: Duplicate
Type: Feature/Change Request
Package: hash related
Operating System: irrelevant
PHP Version: Next Minor Version
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Duplicate of bug #68425.
Previous Comments:
------------------------------------------------------------------------
[2019-05-25 21:53:10] divinity76 at gmail dot com
Description:
------------
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 https://blake2.net/
(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:
---------------
<?php
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
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78067&edit=1