svn: /phpdoc/en/trunk/reference/password/functions/ password-hash.xml

From: Date: Thu, 17 Jul 2014 02:17:56 +0000
Subject: svn: /phpdoc/en/trunk/reference/password/functions/ password-hash.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-12612@lists.php.net to get a copy of this message
yohgaki Thu, 17 Jul 2014 02:17:56 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=334297 Log: Add important CRYPT_BLOWFISH limitation to password_hash() Changed paths: U phpdoc/en/trunk/reference/password/functions/password-hash.xml Modified: phpdoc/en/trunk/reference/password/functions/password-hash.xml =================================================================== --- phpdoc/en/trunk/reference/password/functions/password-hash.xml 2014-07-17 01:20:14 UTC (rev 334296) +++ phpdoc/en/trunk/reference/password/functions/password-hash.xml 2014-07-17 02:17:56 UTC (rev 334297) @@ -41,6 +41,12 @@ 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 trancates string longer than 72 + bytes and ignored. To workround 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>

« previous php.doc.cvs (#12612) next »