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 image85

Best Answer BlissfulWriter says

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

4 years ago
 |  Comment
wtaylorjr2001 profile image80

William H Taylor (wtaylorjr2001) says

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

4 years ago
 |  Comment