php - Should I encrypt email addresses?

后端 未结 8 986
别那么骄傲
别那么骄傲 2020-12-19 02:54

When users register, should I store their email in the db as is or hash it. I want to be able to decrypt it later, so should I use md5?

thank you!

8条回答
  •  情书的邮戳
    2020-12-19 03:19

    The other answers say it all.

    However, you should always encrypt hash passwords with at least md5() and a salt, as pointed out in Ivan's reply.

提交回复
热议问题