Skip to main content

hash_password

Function hash_password 

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

Hashes password under the current parameters, returning the encoded form to store.

Does not check the policy: callers that accept a new password call check_password_policy first, and the login path’s rehash must be able to re-encode a password that predates the current rules.