Add sha256salt hashing option in password verification

This commit is contained in:
lithromantic
2026-01-18 00:04:00 +01:00
committed by GitHub
parent 601955e60d
commit f6abc362fd
+1
View File
@@ -86,6 +86,7 @@ class Helper
case 'md5': return md5($password) === $hash;
case 'sha256': return hash('sha256', $password) === $hash;
case 'md5salt': return md5($password . $salt) === $hash;
case 'sha256salt': return hash('sha256', $password . $salt) === $hash;
default: return password_verify($password, $hash);
}
}