pub async fn encrypt_data( data: &[u8], key: &[u8; 32], ) -> Result<String, CryptoError>
Encrypts data using the globally configured algorithm.