开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜