pub fn encrypted_write( data: Vec<u8>, key: &LessSafeKey, file: PathBuf, ) -> Result<()>
Write data encrypted to a file with a random nonce that will be encoded in the file
data
file
nonce