Skip to main content

derive_key

Function derive_key 

Source
fn derive_key(passphrase: &str, salt: &[u8; 32]) -> Zeroizing<[u8; 32]>
Expand description

Derives a key from the given passphrase and salt using Argon2id.

§Arguments

  • passphrase - The passphrase to derive the key from.
  • salt - A 32-byte salt used in the key derivation process.

§Returns

A Zeroizing<[u8; 32]> containing the derived key. The