encrypt

Function encrypt 

Source
pub fn encrypt(filename: &str, key: &[u8; 32]) -> Result<(), Error>
Expand description

Function to encrypt a file using a 32-bit key Returns Result type

ยงErrors

This function will return an appropriate variant of std::io::Error if there is any error reading the file or creating the encrypted file