Skip to main content

hash

Function hash 

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

Hash a password with argon2id + OS-provided salt. Returns the PHC-encoded string, ready to store in rustio_users.password_hash.

Empty passwords are refused at the boundary — there is never a legitimate reason to hash one.