Function xxtea::decrypt_raw [] [src]

pub fn decrypt_raw(data: &Vec<u8>, key: &str) -> Vec<u8>

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 decrypted
  • key - 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);