SQ-DECRYPT(1) | USER COMMANDS | SQ-DECRYPT(1) |
NAME¶
sq-decrypt - Decrypts a message
Decrypts a message using either supplied keys, or by prompting for a password. Any signatures are checked using the supplied certificates.
The converse operation is "sq encrypt".
SYNOPSIS¶
sq decrypt [FLAGS] [OPTIONS] [--] [FILE]
FLAGS¶
- -h, --help
- Prints help information
- --dump-session-key
- Prints the session key to stderr
- --dump
- Prints a packet dump to stderr
- -x, --hex
- Prints a hexdump (implies --dump)
OPTIONS¶
- -o, --output FILE
- Writes to FILE or stdout if omitted
- -n, --signatures N
- Sets the threshold of valid signatures to N. If this threshold is not reached, the message will not be considered verified. [default: 0]
- --signer-cert CERT
- Verifies signatures with CERT
- --recipient-key KEY
- Decrypts with KEY
ARGS¶
- FILE
- Reads from FILE or stdin if omitted
EXAMPLES¶
- # Decrypt a file using a secret key
- $ sq decrypt --recipient-key juliet.pgp ciphertext.pgp
- # Decrypt a file verifying signatures
- $ sq decrypt --recipient-key juliet.pgp --signer-cert romeo.pgp ciphertext.pgp
- # Decrypt a file using a password
- $ sq decrypt ciphertext.pgp
SEE ALSO¶
For the full documentation see <https://docs.sequoia-pgp.org/sq/>.
sq(1), sq-armor(1), sq-autocrypt(1), sq-certify(1), sq-dearmor(1), sq-decrypt(1), sq-encrypt(1), sq-inspect(1), sq-key(1), sq-keyring(1), sq-packet(1), sq-sign(1), sq-verify(1)
AUTHORS¶
Azul <azul@sequoia-pgp.org> Igor Matuszewski <igor@sequoia-pgp.org> Justus Winter <justus@sequoia-pgp.org> Kai Michaelis <kai@sequoia-pgp.org> Neal H. Walfield <neal@sequoia-pgp.org> Nora Widdecke <nora@sequoia-pgp.org> Wiktor Kwapisiewicz <wiktor@sequoia-pgp.org>
JANUARY 2021 | 0.24.0 (SEQUOIA-OPENPGP 1.0.0) |