pub fn encrypt(plaintext: &[u8], key: &SecretKey) -> Result<EncryptedData>Expand description
Encrypt plaintext using XChaCha20-Poly1305.
pub fn encrypt(plaintext: &[u8], key: &SecretKey) -> Result<EncryptedData>Encrypt plaintext using XChaCha20-Poly1305.