From f1158f9a3da52082cecd87b15f8d0c24962dcf46 Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Tue, 17 Aug 2021 18:54:16 -0400 Subject: [PATCH] implement decrypt --- src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.rs b/src/main.rs index 1dbeae0..a6c6a26 100644 --- a/src/main.rs +++ b/src/main.rs @@ -317,6 +317,12 @@ fn main() { } manifest.save(&passkey).expect("Failed to save manifest."); return; + } else if matches.is_present("decrypt") { + for entry in &mut manifest.entries { + entry.encryption = None; + } + manifest.save(&passkey).expect("Failed to save manifest."); + return; } let mut selected_accounts: Vec>> = vec![];