Skip to main content

encrypt

Function encrypt 

Source
pub fn encrypt(key: &[u8; 32], plaintext: &[u8]) -> Result<String>
Expand description

Encrypts plaintext with AES-256-GCM. Returns nonce || ciphertext as hex.