I am going to use xor-utils to xor encode/encryption of a file.
Unfortunately, I have a bit problem to perform this action.
Here is my sample code :
use std::io::Read; use xor_utils::Xor; //let mut buf = BytesMut::with_capacity(1024); let mut file = File::open("file")?; let encrypted = file.xor("héllo");
n | let xa = str_file.xor("héllo"); | ^^^ method not found in `std::fs::File`