svn: /phpdoc/en/trunk/reference/strings/functions/ crypt.xml
| From: | Yasuo Ohgaki | Date: | Thu, 17 Jul 2014 01:20:14 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/strings/functions/ crypt.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-12611@lists.php.net to get a copy of this message | ||
yohgaki Thu, 17 Jul 2014 01:20:14 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=334296
Log:
Add note for crypt()
Changed paths:
U phpdoc/en/trunk/reference/strings/functions/crypt.xml
Modified: phpdoc/en/trunk/reference/strings/functions/crypt.xml
===================================================================
--- phpdoc/en/trunk/reference/strings/functions/crypt.xml 2014-07-16 21:14:31 UTC (rev 334295)
+++ phpdoc/en/trunk/reference/strings/functions/crypt.xml 2014-07-17 01:20:14 UTC (rev 334296)
@@ -110,6 +110,23 @@
</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>
@@ -313,6 +330,7 @@
<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>