HubPages Answers Will Soon Be Retired
Please stop by the HubPages Blog for more details.
melbel profile image 97

Why would you salt twice before generating an MD5 hash?


I understand the usage of salting a hash before generating an MD5 hash and would write the code like this: hash = md5 ( password + salt ) A friend told me that best practice would be to salt a password that's already been salted before generating the hash, like this: hash = md5 ( ( password + salt ) + salt ) Why would this be best practice?

sort by best latest

BlissfulWriter profile image72

Best Answer BlissfulWriter says

You can help the HubPages community highlight top quality content by ranking this answer up or down.

5 years ago
wtaylorjr2001 profile image76

William H Taylor (wtaylorjr2001) says

You can help the HubPages community highlight top quality content by ranking this answer up or down.

5 years ago