Req #78067 [NEW]: blake2b hash support

From: Date: Sat, 25 May 2019 21:53:10 +0000
Subject: Req #78067 [NEW]: blake2b hash support
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-220994@lists.php.net to get a copy of this message
From: divinity76 at gmail dot com Operating system: irrelevant PHP version: Next Minor Version Package: hash related Bug Type: Feature/Change Request Bug description:blake2b hash support 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 bug report at https://bugs.php.net/bug.php?id=78067&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78067&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78067&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78067&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=78067&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78067&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78067&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78067&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78067&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78067&r=support Expected behavior: https://bugs.php.net/fix.php?id=78067&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78067&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78067&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78067&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78067&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=78067&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78067&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78067&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78067&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78067&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78067&r=mysqlcfg

« previous php.bugs (#220994) next »