Function derive_encryption_key
Source pub fn derive_encryption_key(
password: impl AsRef<str>,
salt: impl AsRef<str>,
) -> Result<Vec<u8>>
Expand description
Derive an encryption key from a password and salt using Argon2id
§Arguments
password - The user’s password
salt - The salt string (base64 encoded, from hash_password)
§Returns
A 32-byte encryption key suitable for AES-256