Function aes_decrypt
Source pub fn aes_decrypt(key: &str, data: &str) -> Result<String, Error>
Expand description
Decrypts AES-256-GCM-SIV encrypted data using a static nonce.
§Arguments
key - The decryption key
data - Base64 encoded ciphertext to decrypt
§Returns
Ok(String) - Decrypted plaintext
Err(Error) - If decryption or base64 decoding fails