From f8e3f4345b079b99426f5560da4b3b37c860e2db Mon Sep 17 00:00:00 2001 From: Joey Smith Date: Thu, 18 Feb 2010 00:10:10 +0000 Subject: [PATCH] Current blowfish implementation is limited to 2**4-2**31, according to Solar Designer. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@295224 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/crypt.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/strings/functions/crypt.xml b/reference/strings/functions/crypt.xml index 54d19014fd..6e5876bcbb 100644 --- a/reference/strings/functions/crypt.xml +++ b/reference/strings/functions/crypt.xml @@ -67,7 +67,7 @@ "$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 + into the Blowfish cipher 2^cost times. The cost parameter must be in range 04-31, values outside this range will cause crypt() to select DES-based encryption instead, with a salt of '$2'.