Skip to main content

write_encrypted

Function write_encrypted 

Source
pub fn write_encrypted(path: &Path, data: &[u8], passphrase: &str) -> Result<()>
Expand description

Write and encrypt data to a file

ยงArguments

  • path - Path to the file
  • data - The plaintext data to encrypt and write
  • passphrase - The passphrase to encrypt with