php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #33267 DES_CRYPTED_LENGTH
Submitted: 2005-06-07 23:40 UTC Modified: 2021-04-28 13:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: ceo at l-i-e dot com Assigned: cmb (profile)
Status: Wont fix Package: *Encryption and hash functions
PHP Version: 5.1 OS: *
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-06-07 23:40 UTC] ceo at l-i-e dot com
Description:
------------
It would be Really Nifty if there were constants for the output lengths of the
various CRYPT algorithms.

EG:
MD5_CRYPTED_LENGTH 32

Cuz I can never remember how long the various crypt thingies go, and I always need to build the table to hold them, so I spend an hour digging around for the number I need.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-18 23:10 UTC] jani@php.net
-Package: Feature/Change Request +Package: *Encryption and hash functions -Operating System: All +Operating System: * -PHP Version: PHP 5.1 +PHP Version: 5.1
 [2021-04-28 13:00 UTC] cmb@php.net
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: cmb
 [2021-04-28 13:00 UTC] cmb@php.net
Given that there has been no further feedback indicating more
interest in this for many years, and that it's trivial to get
these values, e.g.

    echo strlen(md5(""))

I'm closing this as WONTFIX.  If anybody feels strongly that this
would be a valuable feature addition, please pursue the RFC
process[1].

[1] <https://wiki.php.net/rfc/howto>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 05:01:29 2024 UTC