[][src]Function scram::hash_password

pub fn hash_password(password: &str, iterations: u16, salt: &[u8]) -> [u8; 32]

Hashes a password with SHA-256 with the given salt and number of iterations. This should be used by AuthenticationProvider implementors to hash any passwords prior to being saved.