E everlite New Member Jun 11, 2012 #1 What are the advantages / disadvantages of those 3 methods to create a salt?\[code\]$salt = md5($password);$salt = sha1(md5($password));$salt = generate_random_number();\[/code\]Computing hash:\[code\]$hash = sha1($salt + $password);\[/code\]
What are the advantages / disadvantages of those 3 methods to create a salt?\[code\]$salt = md5($password);$salt = sha1(md5($password));$salt = generate_random_number();\[/code\]Computing hash:\[code\]$hash = sha1($salt + $password);\[/code\]