Skip to main content

decrypt

Function decrypt 

Source
pub fn decrypt(key: &[u8], ciphertext_with_nonce: &[u8]) -> Result<Vec<u8>>
Expand description

Decrypt data that was produced by encrypt.

Expects the first 12 bytes to be the nonce, followed by the ciphertext.