[][src]Function enc_file::save_file

pub fn save_file(data: Vec<u8>, path: &str) -> Result<()>

Saves file to same folder. Returns result

Examples

let new_filename: String = filename.to_owned() + ".crpt";
save_file(ciphertext, &new_filename).unwrap();