Skip to main content

derive_credentials

Function derive_credentials 

Source
pub fn derive_credentials(
    password: &str,
    salt: &[u8],
    iterations: u32,
) -> ScramCredentials
Expand description

Derive SCRAM credentials from a password (for user creation/storage).

Uses PBKDF2-HMAC-SHA-256 with the given salt and iteration count.