password(1)

NAME
password - Changes password protecting secrets

SYNOPSIS
password [-o|--output] [--clear] [-B|--binary] [-h|--help] [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

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

--clear=CLEAR
    Emit a key with unencrypted secrets

-B, --binary=BINARY
    Emits binary data

-h, --help
    Print help information (use `-h` for a summary)

[FILE]
    Reads from FILE or stdin if omitted

EXTRA
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