Skip to main content

hash_password

Function hash_password 

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

Create a password hash string from a plaintext password.

Generates a random 16-byte salt and uses DEFAULT_ITERATIONS. Returns the hash in the format accepted by parse_password_hash.