feat: v1.9.18

This commit is contained in:
2025-10-18 14:32:06 +08:00
parent a6397fc45a
commit 3708781390
3 changed files with 15 additions and 2 deletions

9
Cargo.lock generated
View File

@@ -2077,7 +2077,7 @@ dependencies = [
[[package]] [[package]]
name = "tiny-encrypt" name = "tiny-encrypt"
version = "1.9.17" version = "1.9.18"
dependencies = [ dependencies = [
"aes-gcm-stream", "aes-gcm-stream",
"base64 0.22.1", "base64 0.22.1",
@@ -2118,6 +2118,7 @@ dependencies = [
"x509-parser", "x509-parser",
"yubikey", "yubikey",
"zeroize", "zeroize",
"zeroizing-alloc",
] ]
[[package]] [[package]]
@@ -2688,3 +2689,9 @@ dependencies = [
"quote", "quote",
"syn", "syn",
] ]
[[package]]
name = "zeroizing-alloc"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ebff5e6b81c1c7dca2d0bd333b2006da48cb37dbcae5a8da888f31fcb3c19934"

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "tiny-encrypt" name = "tiny-encrypt"
version = "1.9.17" version = "1.9.18"
edition = "2021" edition = "2021"
license = "MIT" license = "MIT"
description = "A simple and tiny file encrypt tool" description = "A simple and tiny file encrypt tool"
@@ -56,6 +56,7 @@ json5 = "0.4"
external-command-rs = "0.1" external-command-rs = "0.1"
percent-encoding = "2.3" percent-encoding = "2.3"
ml-kem = { version = "0.2.1", features = ["zeroize"] } ml-kem = { version = "0.2.1", features = ["zeroize"] }
zeroizing-alloc = "0.1.0"
[profile.release] [profile.release]
codegen-units = 1 codegen-units = 1

View File

@@ -13,6 +13,11 @@ use tiny_encrypt::CmdInitKeychain;
use tiny_encrypt::CmdInitPiv; use tiny_encrypt::CmdInitPiv;
use tiny_encrypt::{init_tiny_encrypt_log, CmdConfig, CmdDirectDecrypt, CmdEncrypt, CmdInfo, CmdSimpleDecrypt, CmdSimpleEncrypt, CmdVersion}; use tiny_encrypt::{init_tiny_encrypt_log, CmdConfig, CmdDirectDecrypt, CmdEncrypt, CmdInfo, CmdSimpleDecrypt, CmdSimpleEncrypt, CmdVersion};
use zeroizing_alloc::ZeroAlloc;
#[global_allocator]
static ALLOC: ZeroAlloc<std::alloc::System> = ZeroAlloc(std::alloc::System);
#[derive(Debug, Parser)] #[derive(Debug, Parser)]
#[command(name = "tiny-encrypt-rs")] #[command(name = "tiny-encrypt-rs")]
#[command(about = "A tiny encrypt client in Rust", long_about = None)] #[command(about = "A tiny encrypt client in Rust", long_about = None)]