Skip to main content

encrypt

Function encrypt 

Source
pub fn encrypt(
    plaintext: &[u8],
    passphrase: &str,
) -> Result<(Vec<u8>, [u8; 12], [u8; 16]), StegoError>
Expand description

Encrypt plaintext with AES-256-GCM-SIV.

Returns (ciphertext_with_tag, nonce, salt). The ciphertext includes the 16-byte authentication tag appended by AES-GCM-SIV.