What is the correct datatype for storing hashed passwords in mysql?
I plan to hash passwords on my server using SHA512 before inserting them 开发者_开发知识库into my database. What datatype should I use for the password column?
Depends if your encrypted password may be binary or not : if yes, use blob or varbinary, otherwize char, varchar or text will do it. reference : mysql
精彩评论