Function enc_file::decrypt_file

source ·
pub fn decrypt_file(
    keymap_plaintext: HashMap<String, String>,
    enc: &str
) -> Result<(), Box<dyn Error>>
Expand description

Decrypts file. Taking a keymap “keymap_plaintext” and the choosen encryption “enc” (“chacha” for ChaCha20Poly1305 or “aes” for AES256-GCM-SIV). Returns result.