Skip to main content

decrypt_data

Function decrypt_data 

Source
pub fn decrypt_data(
    encrypted_data: &[u8],
    key_hex: &str,
    nonce_hex: &str,
) -> Result<Vec<u8>, String>
Expand description

Decrypt data with AES-256-GCM using a 16-byte nonce (0xChat-compatible). Input format: ciphertext || 16-byte auth tag.