SQ(1) | User Commands | SQ(1) |
sq decrypt - Decrypt a message
sq decrypt [OPTIONS] FILE
Decrypt a message.
Decrypt a message using either supplied keys, or by prompting for a password. If message tampering is detected, an error is returned. See below for details.
If certificates are supplied using the `--signer-file` option, any signatures that are found are checked using these certificates. Verification is only successful if there is no bad signature, and the number of successfully verified signatures reaches the threshold configured with the `--signatures` parameter.
If the signature verification fails, or if message tampering is detected, the program terminates with an exit status indicating failure. and the output file is deleted. If the output was sent to stdout, then the last 25 MiB of the message are withheld (consequently, if the message is smaller than 25 MiB, no output is produced).
The converse operation is `sq encrypt`.
See sq(1) for a description of the global options.
Decrypt a file using a secret key
sq decrypt --recipient-file juliet-secret.pgp ciphertext.pgp
Decrypt a file verifying signatures
sq decrypt --recipient-file juliet-secret.pgp --signer-file \
romeo.pgp ciphertext.pgp
Decrypt a file using the key store
sq decrypt ciphertext.pgp
sq(1).
For the full documentation see <https://book.sequoia-pgp.org>.
0.40.0 (sequoia-openpgp 1.21.2)
0.40.0 | Sequoia PGP |