svn: /phpdoc/en/trunk/reference/strings/functions/ crypt.xml

From: Date: Tue, 16 Feb 2010 17:41:49 +0000
Subject: svn: /phpdoc/en/trunk/reference/strings/functions/ crypt.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-6078@lists.php.net to get a copy of this message
joey Tue, 16 Feb 2010 17:41:49 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=295180 Log: Further refine the Blowfish documentation - what characters are allowed in the salt, what crypt() does if invalid characters are used, the valid number of rounds, what happens if you specify an invalid number of rounds. 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 2010-02-16 17:32:20 UTC (rev 295179) +++ phpdoc/en/trunk/reference/strings/functions/crypt.xml 2010-02-16 17:41:49 UTC (rev 295180) @@ -63,10 +63,11 @@ <listitem> <simpara> <constant>CRYPT_BLOWFISH</constant> - Blowfish encryption with a salt as follows: - "$2", optional "a", "$", a two digit cost parameter, "$", and 22 base 64 digits. The presence - of the optional "a" means that a NUL is to be appended to the password before it is used as a - key. The two digits set the cost parameter, where the output will be fed back into the Blowfish - cipher 2^cost times. + "$2a$", a two digit cost parameter, "$", and 22 base 64 digits from the alphabet + "./0-9A-Za-z". Using characters outside of this range in the salt will cause crypt() to return + a zero-length string. The two digits set the cost parameter, where the output will be fed back + into the Blowfish cipher 2^cost times. The cost parameter must be in range 03-39, values outside + this range will cause crypt() to select DES-based encryption instead, with a salt of '$2'. </simpara> </listitem> <listitem>

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