php.net |  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
Votes:1
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
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: divinity76 at gmail dot com
New email:
PHP Version: OS:

 

 [2019-05-25 21:53 UTC] 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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-04-19 14:33 UTC] cmb@php.net
-Status: Open +Status: Duplicate -Assigned To: +Assigned To: cmb
 [2020-04-19 14:33 UTC] cmb@php.net
Duplicate of bug #68425.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Nov 30 11:01:22 2020 UTC