Doc #63250 [Opn->Csd]: Alternative to mhash_keygen_s2k()?
| From: | cmb@php.net | Date: | Sat, 24 Feb 2018 17:46:11 +0000 |
| Subject: | Doc #63250 [Opn->Csd]: Alternative to mhash_keygen_s2k()? | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-15463@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63250&edit=1
ID: 63250
Updated by: cmb@php.net
Reported by: alix dot axel+php at gmail dot com
Summary: Alternative to mhash_keygen_s2k()?
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: hash related
Operating System: Ubuntu 12 / Windows 7
PHP Version: 5.3.17
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
> It is recommended to use the mhash functions to create a key
> from a string.
This recommendation has been changed in the meantime (see example
#1). Furthermore the mcrypt extension has been deprecated and
moved to PECL, so this ticket can is obsolete.
Previous Comments:
------------------------------------------------------------------------
[2012-10-09 18:18:09] alix dot axel+php at gmail dot com
Changed package from mhash to hash.
------------------------------------------------------------------------
[2012-10-09 18:08:48] alix dot axel+php at gmail dot com
Description:
------------
The mcrypt_encrypt manual page (http://php.net/manual/en/function.mcrypt-
encrypt.php) says that:
It is recommended to use the mhash functions to create a key from a string.
But the introduction of the mhash manual
(http://php.net/manual/en/intro.mhash.php) says that:
Note: This extension is obsoleted by Hash.
Here (http://php.net/manual/en/migration53.removed-extensions.php) it also
stated that:
mhash - Discontinued; use the hash extension instead. hash has full mhash
compatibility; all existing applications using the old functions will continue
to work.
-----------------------
The problem is that there's no hash alternative for
http://www.php.net/manual/en/function.mhash-keygen-s2k.php.
I'm filling this as a documentation bug, but I'm not exactly sure if it should
be filled in some other category (perhaps feature request?) because at the
moment we have no other way to do what mhash_keygen_s2k() used to do.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63250&edit=1