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
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.
Password:
Status:
Package:
Bug Type:
Summary:
From: ceo at l-i-e dot com
New email:
PHP Version: OS:

 

 [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-2021 The PHP Group
All rights reserved.
Last updated: Fri May 14 14:01:23 2021 UTC