From 3e33a8d374d1d4a4bb078cc09e15c8660ea626b9 Mon Sep 17 00:00:00 2001 From: Joey Smith Date: Fri, 19 Feb 2010 20:24:23 +0000 Subject: [PATCH] Clarification on the salt format for Extended DES via pajoye and Solar Designer. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@295263 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/crypt.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/reference/strings/functions/crypt.xml b/reference/strings/functions/crypt.xml index 6e5876bcbb..b3f252d855 100644 --- a/reference/strings/functions/crypt.xml +++ b/reference/strings/functions/crypt.xml @@ -51,8 +51,10 @@ - CRYPT_EXT_DES - Extended DES-based encryption with a nine character salt - starting with "_", with the remainder coming from the alphabet "/0-9A-Za-z". + CRYPT_EXT_DES - Extended DES-based encryption. The "salt" is a + 9-character string consisting of an underscore followed by 4 bytes of iteration count and 4 + bytes of salt. These are encoded as printable characters, 6 bits per character, least + significant character first. The values 0 to 63 are encoded as "./0-9A-Za-z".