Skip to main content

hash_password

Function hash_password 

Source
pub fn hash_password(password: &str) -> Result<String, Error>
Expand description

Hash a password using Argon2id with default parameters and a fresh random salt.

§Errors

Returns Error::PasswordHash if the underlying hasher fails (which should not happen in practice — it can only fail on out-of-memory).