diff --git a/reference/strings/functions/crypt.xml b/reference/strings/functions/crypt.xml index 1d0e619607..7c1f83e32a 100644 --- a/reference/strings/functions/crypt.xml +++ b/reference/strings/functions/crypt.xml @@ -1,5 +1,5 @@ - + @@ -75,7 +75,7 @@ CRYPT_BLOWFISH - Blowfish encryption with a sixteen character salt - starting with $2$ + starting with $2$ or $2a$ @@ -121,6 +121,37 @@ $hash = crypt($password, substr($password, 0, 2)); ]]> + + Using <function>crypt</function> with different encryption types + + +]]> + + + The above example will output something similar to: + + + + + See also md5 and the Mcrypt extension.