php - Should I encrypt email addresses?

后端 未结 8 985
别那么骄傲
别那么骄傲 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:28

    md5 isn't an encryption method it's a one way hash. There's no reason to encrypt email addresses in the database. I would leave them as is.

提交回复
热议问题