pub fn encrypt( plaintext: &[u8], key: &Key, options: Option<EncryptOptions>, ) -> Result<EncryptionResult>
Encrypt data using AEAD encryption.
Prefers XChaCha20-Poly1305 if specified, otherwise uses AES-256-GCM.
plaintext
key
options
Encrypted data with algorithm, nonce, and authentication tag.