Function decrypt_data

Source
pub fn decrypt_data(encrypted_data: &str, key: &str) -> Result<Value>
Expand description

Decrypts data using AES-GCM with a deterministic IV derived from the key

This function is compatible with the Go implementation’s decryptData function.

§Arguments

  • encrypted_data - Base64-encoded encrypted data
  • key - The decryption key

§Returns

Decrypted JSON value