SQ(1)

NAME
sq key password - Changes password protecting secrets

SYNOPSIS
sq [GLOBAL OPTIONS] key password [OPTIONS] FILE

DESCRIPTION
Changes password protecting secrets.

Secret key material in keys can be protected by a password. This subcommand changes or clears this encryption password.

To emit the key with unencrypted secrets, either use `--clear` or supply a zero-length password when prompted for the new password.

OPTIONS

  Global options

-f, --force
    Overwrites existing files

--help
    Print help information

--known-notation=NOTATION
    Adds NOTATION to the list of known notations

--output-format=FORMAT
    Produces output in FORMAT, if possible

--output-version=VERSION
    Produces output variant VERSION.

--version
    Print version information

  Subcommand options

-B, --binary
    Emits binary data

--clear
    Emit a key with unencrypted secrets

--help
    Print help information

-o, --output=FILE
    Writes to FILE or stdout if omitted

--version
    Print version information

EXAMPLES

First, generate a key

    sq key generate --userid "<juliet@example.org>" --export juliet.key.pgp

Then, encrypt the secrets in the key with a password.

    sq key password < juliet.key.pgp > juliet.encrypted_key.pgp

And remove the password again.

    sq key password --clear < juliet.encrypted_key.pgp > juliet.decrypted_key.pgp

SEE ALSO
sq(1).

For the full documentation see <https://docs.sequoia-pgp.org/sq/>.

VERSION
0.28.0 (sequoia-openpgp 1.13.0, using Nettle)