Skip to main content

encrypt_password

Function encrypt_password 

Source
pub fn encrypt_password(
    plaintext: &[u8],
    password: &str,
) -> Result<PasswordEncryptResult>
Expand description

Encrypt data using password-based encryption (Argon2id + AES-256-GCM)

Returns: (mode_byte, salt, nonce, ciphertext_with_tag)