encryption - Creating a hash that doesn't include its salt in PHP -
for user verification emails, want send users email includes secure hash based on user id , randomly generated salt. of php's functions aimed towards password hashing, , store salt in hash password verification. since intent send user hash, there no need this.
i'm aware of md5 function, doesn't include salt, i'm lead believe md5 hash not secure.
is there way hash (preferably 1 line of code) string in php , homecoming pure hash without salt?
you can add together salt hash. string added whatever hashing. however, best method utilize here random string store along email address on server. when user attempts verify, compare random string. then, there no need worry producing hash based solely on knowledge of email address.
php encryption hash
No comments:
Post a Comment