What Field Type Should Be Used for Password in MySQL when Using PHP crypt()

Mona Coder picture Mona Coder · May 2, 2014 · Viewed 24.7k times · Source

Using PHP crypt() method I have a PHP script to store users encrypted passwords in MySQL database. Can you please let me know what field type I should use to store the encrypted data?

Thanks

Answer

wallyk picture wallyk · May 2, 2014

varchar(of sufficient length)