svn: /phpdoc/en/trunk/reference/ password/functions/password-hash.xml strings/functions/crypt.xml
| From: | Anthony Ferrara | Date: | Thu, 17 Jul 2014 22:14:11 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/ password/functions/password-hash.xml strings/functions/crypt.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-12618@lists.php.net to get a copy of this message | ||
ircmaxell Thu, 17 Jul 2014 22:14:11 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=334309
Log:
Revert 334297 and 334297, as:
1) there was no discussion prior to edits (even in #66564)
2) It is incorrect, misleading and not the overall sentiment that needs to be communicated
Bug: https://bugs.php.net/66564 (Re-Opened) crypt() seems
to silently discard input after a certain length
Changed paths:
U phpdoc/en/trunk/reference/password/functions/password-hash.xml
U phpdoc/en/trunk/reference/strings/functions/crypt.xml
Modified: phpdoc/en/trunk/reference/password/functions/password-hash.xml
===================================================================
--- phpdoc/en/trunk/reference/password/functions/password-hash.xml 2014-07-17 21:37:37 UTC (rev
334308)
+++ phpdoc/en/trunk/reference/password/functions/password-hash.xml 2014-07-17 22:14:11 UTC (rev
334309)
@@ -41,12 +41,6 @@
create the hash. This will produce a standard <function>crypt</function>
compatible hash using
the "$2y$" identifier. The result will always be a 60 character string,
&return.falseforfailure;.
</simpara>
- <simpara>
- <constant>CRYPT_BLOWFISH</constant> has length limitation. It truncates string
longer than 72
- bytes. To workaround this limitation, users may use other hash functions such as
SHA256/SHA512
- prior to <function>password_hash</function>, apply the same hash function before
- <function>password_verify</function>.
- </simpara>
<para>
Supported Options:
</para>
Modified: phpdoc/en/trunk/reference/strings/functions/crypt.xml
===================================================================
--- phpdoc/en/trunk/reference/strings/functions/crypt.xml 2014-07-17 21:37:37 UTC (rev 334308)
+++ phpdoc/en/trunk/reference/strings/functions/crypt.xml 2014-07-17 22:14:11 UTC (rev 334309)
@@ -110,23 +110,6 @@
</itemizedlist>
<note>
<para>
- Use of <function>crypt</function> is
- deprecated. <function>password_hash</function> and
- <function>password_verify</function> is recommended way to handle
- passwords. <function>password_hash</function> and
- <function>password_verify</function> is compitible with
- <function>crypt</function>. It can handle
- <function>crypt</function> generated hashes.
- </para>
- <para>
- As of PHP 5.3.2 <constant>CRYPT_SHA256</constant> and
- <constant>CRYPT_SHA512</constant> has hardcoded minimum of 1000
- rounds. Password hashed less than 1000 rounds should be converted
- prior to upgrade. Developer may implement automatic password hash
- upgrade for successful login and/or request password reset for
- older password hash.
- </para>
- <para>
As of PHP 5.3.0, PHP contains its own implementation and will use that
if the system lacks of support for one or more of the algorithms.
</para>
@@ -330,7 +313,6 @@
<para>
<simplelist>
<member><function>password_hash</function></member>
- <member><function>password_verify</function></member>
<member><function>md5</function></member>
<member>The <link linkend="ref.mcrypt">Mcrypt</link>
extension</member>
<member>The Unix man page for your crypt function for more information</member>