|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #68425 New hash functions for PHP 7
Submitted: 2014-11-14 18:49 UTC Modified: 2017-10-24 06:25 UTC
Avg. Score:4.8 ± 0.6
Reproduced:7 of 7 (100.0%)
Same Version:6 (85.7%)
Same OS:6 (85.7%)
From: scott at arciszewski dot me Assigned:
Status: Open Package: hash related
PHP Version: master-Git-2014-11-14 (Git) OS: Any
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: scott at arciszewski dot me
New email:
PHP Version: OS:


 [2014-11-14 18:49 UTC] scott at arciszewski dot me
For PHP 7.0.0, I would like to see the following hash functions available for hash() and hash_hmac():

 * SHA-512/224
 * SHA-512/256
 * BLAKE-224
 * BLAKE-256
 * BLAKE-384
 * BLAKE-512
 * BLAKE2b
 * BLAKE2s
 * SHA3-224
 * SHA3-256
 * SHA3-384
 * SHA3-512

Test script:
echo hash('sha3,256', '');
// a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-05-14 04:42 UTC]
-Assigned To: +Assigned To: pollita
 [2016-05-14 04:42 UTC]
FYI, the sha methods you listed are already in PHP 7.1
I'll take a look at the blake algos...
 [2017-10-24 06:25 UTC]
-Status: Assigned +Status: Open -Assigned To: pollita +Assigned To:
 [2021-01-08 14:47 UTC]
The following pull request has been associated:

Patch Name: BLAKE3 hash support
On GitHub:
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Aug 14 03:05:46 2022 UTC