Skip to main content

prepare

Function prepare 

Source
pub async fn prepare(
    input: &Password,
    salt: impl Into<Vec<u8>>,
    iterations: u32,
) -> Result<DeriveInput, Error>
Expand description

Parameterize a PBKDF2-HMAC-SHA-1 derivation over an imported password. See pbkdf2_sha2::prepare for the salt and iterations contracts.