开发者

What is the correct datatype for storing hashed passwords in mysql?

开发者 https://www.devze.com 2022-12-20 16:34 出处:网络
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

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

精彩评论

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

关注公众号