Rename sq encrypt --symmetric to --with-password.

- This is an ugly gpgism.  All encrypted messages are symmetrically
    encrypted.  Not all password-encrypted messages encrypt the
    session key symmetrically.  Use language the user understands.

  - Fixes #331.
This commit is contained in:
Justus Winter 2024-09-02 11:47:56 +02:00
parent 13c7d5a83b
commit bbfdebfd73
No known key found for this signature in database
GPG Key ID: 686F55B4AB2B3386
2 changed files with 3 additions and 3 deletions

View File

@ -171,7 +171,7 @@ pub struct Command {
pub signer_key: Vec<KeyHandle>,
#[clap(
long = "symmetric",
long = "with-password",
help = "Prompt to add a password to encrypt with",
long_help =
"Prompt to add a password to encrypt with. \
@ -186,7 +186,7 @@ pub struct Command {
pub symmetric: u8,
#[clap(
long = "symmetric-password-file",
long = "with-password-file",
value_name = "PASSWORD_FILE",
help = "\
File containing password to encrypt the secret key material",

View File

@ -412,7 +412,7 @@ fn sq_encrypt_with_password() -> Result<()>
let cipher_file = sq.base().join("ciphertext");
let mut cmd = sq.command();
cmd.args(["encrypt",
"--symmetric-password-file", &password_file.display().to_string(),
"--with-password-file", &password_file.display().to_string(),
"--output", &cipher_file.display().to_string(),
&plain_file.display().to_string()]);
sq.run(cmd, Some(true));