Search code examples
phpmysqlencryptioncryptstring-length

Max output of crypt() function


Back when I used MD5 I used to create a varchar(32) column in the datebase. However, I started using crypt(), and as I understand the output length is variable. So which length should I set to the varchar?


Solution

  • The maximum number of characters returned is 123 characters. http://php.net/manual/en/function.crypt.php