pub fn hash_password_with_policy(
password: &str,
policy: &PasswordHashPolicy,
) -> Result<String>Expand description
Hashes a password with an explicit policy and a fresh random salt.
§Errors
Returns an error when the policy’s Argon2 parameters are invalid or the password-hash operation fails.