pub fn decrypt<T>(
shared_secret_key: &SharedSecret,
nonce: &Nonce,
cipher_bytes: &[u8],
) -> Result<T>where
T: DeserializeOwned,Expand description
Decrypt a chacha20poly1305 encoded JSON string into an object.
pub fn decrypt<T>(
shared_secret_key: &SharedSecret,
nonce: &Nonce,
cipher_bytes: &[u8],
) -> Result<T>where
T: DeserializeOwned,Decrypt a chacha20poly1305 encoded JSON string into an object.