feat: add pgp card

This commit is contained in:
2023-02-12 18:11:32 +08:00
parent 34993a83a5
commit 817b088a67
7 changed files with 1420 additions and 17 deletions

View File

@@ -9,7 +9,9 @@ use rust_util::{information, XResult};
mod spec;
mod crypto;
mod file;
mod card;
mod cmd_info;
mod cmd_decrypt;
#[derive(Debug, Parser)]
#[command(name = "tiny-encrypt-rs")]
@@ -47,7 +49,10 @@ fn main() -> XResult<()> {
paths.iter().for_each(|f| information!("{:?}", f));
Ok(())
}
Commands::Decrypt { .. } => {
Commands::Decrypt { mut paths } => {
for path in paths {
cmd_decrypt::decrypt(path, &Some("123456".to_string())).unwrap();
}
Ok(())
}
Commands::Info { path } => {