From 097cde6b9adb7ce410ddf0d682a740ccba549725 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Wed, 11 Oct 2023 01:10:07 +0800 Subject: [PATCH] feat: v0.2.5, show decrytped encrypted-message --- src/cmd_decrypt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd_decrypt.rs b/src/cmd_decrypt.rs index 47d4331..1ae320a 100644 --- a/src/cmd_decrypt.rs +++ b/src/cmd_decrypt.rs @@ -109,7 +109,7 @@ pub fn decrypt_single(config: &Option, match util::decode_base64(encrypted_comment) { Err(e) => warning!("Decode encrypted comment failed: {}", e), Ok(encrypted_comment_based_bytes) => match aes_gcm_decrypt(&key, &nonce, &encrypted_comment_based_bytes) { - Err(e) => warning!("Decode encrypted comment failed: {}", e), + Err(e) => warning!("Decrypt encrypted comment failed: {}", e), Ok(decrypted_comment_bytes) => match String::from_utf8(decrypted_comment_bytes.clone()) { Err(_) => success!("Encrypted message hex: {}", hex::encode(&decrypted_comment_bytes)), Ok(message) => success!("Encrypted message: {}", message),