Skip to main content

hash_password

Function hash_password 

Source
pub fn hash_password(password: Secret<String>) -> Result<String, AppError>
Expand description

Hashes a password securely using Argon2. The input is wrapped in Secret<String> to guarantee it doesn’t leak in logs.