Hash from "email+salt " as a token to verify email -
I am verifying the user's email address
The way most people say, he has some unique tokens store in DB Make and send to the user.
I am doing just with the email address with Hashing (sha256) sitthers salt
Some things that may be worth a look (or not).
If someone finds your salt, they can rebuild your hashes and flood your system. In this case, you want to make sure that any user is requesting anything other than your e-mail address. (I.e., I can not get rid of the complete hash stored in DB.)
In addition, if the salt is the same then the same will be the same if they re-request the same e-mail Addresses Are you requested every time, want a different hash for the same e-mail address? You can add server date / time to the e-mail address before you have hashes to isolate it every day.
Comments
Post a Comment