pub fn xor_file_to_vec<P: AsRef<Path>>(path: P, key: u8) -> Result<Vec<u8>>
Decrypt a whole file by XORing each byte with key.
key
This is a convenience API for small/medium assets. For streaming decode, prefer BoundedFile.
BoundedFile