pub fn decrypt_raw(data: &[u8], key: &str) -> Vec<u8>Expand description
Decrypt a u8 vector with XXTEA
The output isn’t verified for correctness, thus additional checks needs to be performed on the output.
§Arguments
data- The data to be decryptedkey- encryption key
§Example
let key : &str = "SecretKey";
let data : [u8; 5] = [11, 13, 0, 14, 15];
let decrypted_data = xxtea::decrypt_raw(&data.to_vec(), &key);
println!("Decrypted data: {:?}", decrypted_data);