Function decrypt_from_base64
Source pub fn decrypt_from_base64<T: for<'de> Deserialize<'de>>(
base64_data: &str,
key: &[u8; 32],
iv: &[u8; 16],
) -> Result<T, Box<dyn Error>>
Expand description
Decrypt base64-encoded encrypted data
§Arguments
base64_data - The base64-encoded encrypted data
key - A 32-byte encryption key
iv - A 16-byte initialization vector
§Returns
Returns a Result containing the decrypted and deserialized data