melbel profile image 92

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 image86

Best Answer BlissfulWriter says

4 years ago
 |  Comment
wtaylorjr2001 profile image80

William H Taylor (wtaylorjr2001) says

3 years ago
 |  Comment