feat: v1.8.1, add --direct-output for simple-encrypt/decrypt

This commit is contained in:
2024-11-17 20:16:56 +08:00
parent cd9b3eb624
commit 85a7448291
4 changed files with 37 additions and 12 deletions

View File

@@ -313,8 +313,8 @@ fn run_file_editor_and_wait_content(editor: &str, temp_file: &PathBuf, secure_ed
command.arg(temp_file.to_str().expect("Get temp file path failed."));
if secure_editor {
command.arg("aes-256-gcm");
command.arg(&hex::encode(&temp_encryption_key_nonce.0));
command.arg(&hex::encode(&temp_encryption_key_nonce.1));
command.arg(hex::encode(&temp_encryption_key_nonce.0));
command.arg(hex::encode(&temp_encryption_key_nonce.1));
if readonly { command.env("READONLY", "true"); }
}
debugging!("Run cmd: {:?}", command);