In our php application, we generate password hashes with password_hash()
(using bcrypt).
bcrypt hashes should be stored in BINARY
or VARBINARY
(MySQL).
I totally understand this requirement if the comparison and/or search is done inside the database. (collation, case sensitive vs case insensitive).
If the database is only used as storage, and the comparision is done on the php application with password_verify()
, can we stay with CHAR
or VARCHAR
?
IF not, why?