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