hash_password

Function hash_password 

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

Hashes a password with the default RFC 9106 second recommended policy.

ยงErrors

Returns an error when the default Argon2 parameters cannot be constructed or hashing fails.