Skip to main content

read_decrypted

Function read_decrypted 

Source
pub fn read_decrypted(path: &Path, passphrase: &str) -> Result<String, Error>
Expand description

Read and decrypt a file

§Arguments

  • path - Path to the encrypted file
  • passphrase - The passphrase to decrypt with

§Returns

The decrypted file contents as a string