.TH SQ-DECRYPT "1" "MARCH 2021" "0.24.0 (SEQUOIA-OPENPGP 1.0.0)" "USER COMMANDS" 5 .SH NAME sq\-decrypt \- Decrypts a message Decrypts 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\-cert" 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. In addition to that, the last 25 MiB of the message are withheld, i.e. if the message is smaller than 25 MiB, no output is produced, and if it is larger, then the output will be truncated. The converse operation is "sq encrypt". .SH SYNOPSIS \fBsq decrypt\fR [FLAGS] [OPTIONS] [\-\-] [FILE] .SH FLAGS .TP \fB\-h\fR, \fB\-\-help\fR Prints help information .TP \fB\-\-dump\-session\-key\fR Prints the session key to stderr .TP \fB\-\-dump\fR Prints a packet dump to stderr .TP \fB\-x\fR, \fB\-\-hex\fR Prints a hexdump (implies \-\-dump) .SH OPTIONS .TP \fB\-o\fR, \fB\-\-output\fR FILE Writes to FILE or stdout if omitted .TP \fB\-n\fR, \fB\-\-signatures\fR N Sets the threshold of valid signatures to N. The message will only be considered verified if this threshold is reached. [default: 1 if at least one signer cert file is given, 0 otherwise] .TP \fB\-\-signer\-cert\fR CERT Verifies signatures with CERT .TP \fB\-\-recipient\-key\fR KEY Decrypts with KEY .SH ARGS .TP FILE Reads from FILE or stdin if omitted .SH EXAMPLES .TP # Decrypt a file using a secret key \fB$ sq decrypt \-\-recipient\-key juliet.pgp ciphertext.pgp\fR .TP # Decrypt a file verifying signatures \fB$ sq decrypt \-\-recipient\-key juliet.pgp \-\-signer\-cert romeo.pgp ciphertext.pgp\fR .TP # Decrypt a file using a password \fB$ sq decrypt ciphertext.pgp\fR .SH SEE ALSO For the full documentation see . .ad l .nh sq(1), sq\-armor(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) .SH AUTHORS .P .RS 2 .nf Azul Igor Matuszewski Justus Winter Kai Michaelis Neal H. Walfield Nora Widdecke Wiktor Kwapisiewicz