Search code examples
phpmysqlcrypt

What field type should be used for passwords in MySQL when using PHP crypt()


Using PHP crypt() method I have a PHP script to store users encrypted passwords in MySQL database. What field type should I use to store the encrypted data?


Solution

  • varchar(of sufficient length)