Skip to main content

decrypt_data

Function decrypt_data 

Source
pub fn decrypt_data(data: &[u8], key: &[u8; 32]) -> Result<Vec<u8>>
Expand description

Decrypt data that was encrypted with encrypt_data, returns the original plaintext or an error if decryption fails.