// salt password with user username
$salt = $_POST[‘username’];
$password = sha1($password, $salt);
it works but i want to know if it is advisable to use it to store password.
// salt password with user username
$salt = $_POST[‘username’];
$password = sha1($password, $salt);
it works but i want to know if it is advisable to use it to store password.
NO NO NO NO NO
Use the password functions built into PHP instead of creating your own extremely insecure versions.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.