php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #80036 Add a function to get the length of hash algorithm
Submitted: 2020-08-31 03:14 UTC Modified: 2020-08-31 10:23 UTC
From: kayson at huida dot cn Assigned:
Status: Open Package: hash related
PHP Version: Next Minor Version OS: Windows10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
49 - 49 = ?
Subscribe to this entry?

 
 [2020-08-31 03:14 UTC] kayson at huida dot cn
Description:
------------
  In order to make my program more flexible, I hope to have a complete set of hash functions. For example: hash_algo_size().

  It is somewhat similar to the EVP_MD_size() function in openssl.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-08-31 10:23 UTC] nikic@php.net
FWIW, it should be possible to get this via strlen(hash($algo, '', true)).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 21:01:31 2024 UTC