How to create tables with password fields in mysql?

后端 未结 4 1159
逝去的感伤
逝去的感伤 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:59

    You could also use the AES_ENCRYPT() function built into mysql for greater security. Link here

    There is also a good how-to here explaining further: link

提交回复
热议问题