// Encrypts the password with given algorithm and salt
private function _hashPassword($password, $algorithm, $salt) {
if ($algorithm != "SHA1") {
return hash_hmac($algorithm, $password, $salt);
} else {
return SHA1(SHA1($password));
}
}
// Encrypts the password with given algorithm and salt
private function _hashPassword($username, $password) {
$user = strtoupper($user_name);
$pass = strtoupper($password);
return SHA1($user.':'.$pass);
}
Category Forum
Modifications and Requests - 8Labels
None yet
Statistics
1 participant
Notifications
You are not receiving notifications from this thread.
Related Questions