php - Should I encrypt email addresses?

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

    MD5 is an hash, which makes it allmost inpossible to get the original value back. You should use an encryption instead of an hash if you want to get the email back.

提交回复
热议问题