Skip to main content

derive_key

Function derive_key 

Source
pub fn derive_key(passphrase: &str, salt: &Salt) -> Result<DerivedKey, Error>
Expand description

Derive 32 bytes of key material from a passphrase and salt using Argon2id.

Production: m_cost=65536 (64 MiB), t_cost=3, p_cost=4, output=32 bytes. Debug or fast-kdf feature: m_cost=256, t_cost=1, p_cost=1 (insecure).