pub fn hash_scram_password(
password: &[u8],
mechanism: SaslMechanism,
iterations: u32,
) -> Result<ScramCredential, ScramError>Expand description
Hash password into a SCRAM credential with a fresh random 16-byte salt.
§Errors
ScramError::RandomUnavailable when the system RNG cannot produce the
salt.
§Panics
Panics if iterations is zero, or mechanism is not a SCRAM mechanism.