Function generate_hash

Source
pub fn generate_hash(password: impl AsRef<[u8]>) -> String
Expand description

Generate a password hash for the given password.

Uses the best available password hashing algorithm given the enabled crate features (typically Argon2 unless explicitly disabled).