pub fn encrypt_file(
path: &Path,
output_path: &Path,
password: &[u8],
) -> Result<()>Expand description
Encrypts file data and outputs it to the specified output file
ยงExamples
use simple_crypt::encrypt_file;
use std::path::Path;
encrypt_file(Path::new("example.txt"), Path::new("encrypted_example.txt"), b"example passwprd").expect("Failed to encrypt the file");
// Now the encrypted_example.txt is encrypted