How to create tables with password fields in mysql?

后端 未结 4 1094
逝去的感伤
逝去的感伤 2021-02-07 10:51

Should I create the password column as a regular varchar and then insert like this:

sha1($pass_string)

Or should I do something extra upon the

4条回答
  •  名媛妹妹
    2021-02-07 10:57

    Most people save the hash as you have suggested. It's safe enough and simple, making it a good choice.

    Note that all hashes can be cracked eventually, so any hash is better than none and SHA is strong enough.

提交回复
热议问题