feat: set default encryption algorithm
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user