Skip to main content

xor_file_to_vec

Function xor_file_to_vec 

Source
pub fn xor_file_to_vec<P: AsRef<Path>>(path: P, key: u8) -> Result<Vec<u8>>
Expand description

Decrypt a whole file by XORing each byte with key.

This is a convenience API for small/medium assets. For streaming decode, prefer BoundedFile.