feat: set default encryption algorithm

This commit is contained in:
2023-09-30 22:55:03 +08:00
parent b656d49933
commit 015fa42ca7
3 changed files with 6 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ use rust_util::{iff, opt_result, success, XResult};
use rust_util::util_time::get_current_millis;
use simpledateformat::format_human2;
use crate::file;
use crate::{file, util};
#[derive(Debug, Args)]
pub struct CmdInfo {
@@ -71,7 +71,7 @@ pub fn info(cmd_info: CmdInfo) -> XResult<()> {
let encryption_algorithm = if let Some(encryption_algorithm) = &meta.encryption_algorithm {
encryption_algorithm.to_string()
} else {
"AES/GCM (default)".to_string()
format!("{} (default)", util::TINY_ENC_AES_GCM)
};
infos.push(format!("{}: {}", header("Encryption algorithm"), encryption_algorithm));