I was wondering to hash the password in PHP using different methods available and the combination of them for more and more security.
I was wondering if this would work..?
$pass = "***";
$salt = "!@)#%%@(#&@_!R151";
$pass = sha1($pass.$salt);
$pass = md5($pass);
Rather than that, you can use a stronger hashing algorithm like
sha512with combination of a strong salt andUserID: Do it like this:SHA512 is actually SHA-2 for which there are no collisions found. See at wikipedia.