Function scram::hash_password [−][src]
pub fn hash_password(
password: &str,
iterations: NonZeroU32,
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.