SQ(1)
๐ SQ-DECRYPT โ it's giving "unlock the tea" โจ
okay bestie, welcome to the sq-decrypt page from the SQ(1) user commands manual ๐
she's the one who cracks open encrypted messages, and she is lowkey a whole vibe. also hi, we're in section 1 of the manual, keeping it cute, keeping it canonical ๐
๐ธ NAME ๐ธ
sq-decrypt โ decrypt a message ๐ฆ
โจ SYNOPSIS โจ
sq decrypt [OPTIONS] FILE
๐ DESCRIPTION ๐
Decrypt a message. That's it, that's the job, no cap ๐
She'll decrypt a message using either the keys you hand her, or by prompting you for a password ๐ Whichever way you go, if message tampering is detected, an error gets returned โ see the deets below, bestie, don't skip them.
If certificates are supplied using the --signer-file option, any signatures that are found get checked against those certificates ๐ Verification only succeeds if there is no bad signature and the number of successfully verified signatures reaches the threshold you configured with the --signatures parameter. It's giving "strict queen energy".
If signature verification fails, or if message tampering is detected, the program terminates with an exit status indicating failure ๐ญ and the output file gets deleted. Not archived, not backed up, deleted. And if the output was sent to stdout instead, then the last 25 MiB of the message are withheld โ which consequently means if the message is smaller than 25 MiB, no output is produced at all. Fr fr, plan accordingly.
โ ๏ธ tampering detected = failure exit status, output file gone, or last 25 MiB of stdout withheld. she is not playing around, bestie ๐
The converse operation is sq encrypt ๐ (yes, they're besties, obviously).
๐ OPTIONS ๐
๐ Subcommand options ๐
--dump-session-keyโ print the session key to stderr ๐ like a little sneak peek, just for you.--output=FILEโ write to FILE, or to stdout if you leave it out.[default: -]
--recipient-file=KEY_FILEโ decrypt the message using the key in KEY_FILE ๐ that's your secret key file, girly.--session-key=SESSION-KEYโ decrypt an encrypted message using SESSION-KEY ๐๏ธ--signatures=Nโ set 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]
--signer=FINGERPRINT|KEYIDโ require a signature from a certificate with the specified fingerprint or key ID ๐--signer-domain=DOMAINโ require a signature from a certificate where a user ID includes an email address for the specified domain ๐ง--signer-email=EMAILโ require a signature from a certificate where a user ID includes the specified email address ๐--signer-file=PATHโ require a signature from a certificate read from PATH ๐--signer-userid=USERIDโ require a signature from a certificate with the specified user ID ๐ชชFILEโ read from FILE, or from stdin if FILE is'-'๐ฅ[default: -]
๐ซถ Global options ๐ซถ
See sq(1) for a description of the global options โ she's the main character, go say hi ๐
๐ฅ EXAMPLES ๐ฅ
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
(not the lowercase example heading, that's just how she came, and we respect her ๐ซก)
๐ SEE ALSO ๐
For the full documentation see <https://book.sequoia-pgp.org/> ๐
๐ซ VERSION ๐ซ
1.5.0
okay bestie that's the whole page, you ate it up ๐ anyway, this masterpiece was brought to you by Sequoia PGP and she's sitting pretty at version 1.5.0, dated right there in the footer โ so go forth, decrypt responsibly, and remember: verify then trust, never the other way around ๐๐งโจ
๐ฆ where this page comes from
- fedora 43: sequoia-sq 1.5.0-1.fc43 ยท LGPL-2.0-or-later AND Apache-2.0 AND BSL-1.0 AND BSD-3-Clause AND MIT AND MPL-2.0 AND Unicode-3.0 AND Unicode-DFS-2016 AND Zlib AND bzip2-1.0.6 AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (MIT OR Apache-2.0 OR Zlib) AND (Unlicense OR MIT)
- fedora 44: sequoia-sq 1.5.0-1.fc44 ยท LGPL-2.0-or-later AND Apache-2.0 AND BSL-1.0 AND BSD-3-Clause AND MIT AND MPL-2.0 AND Unicode-3.0 AND Unicode-DFS-2016 AND Zlib AND bzip2-1.0.6 AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (MIT OR Apache-2.0 OR Zlib) AND (Unlicense OR MIT)
- nixpkgs unstable: sequoia-sq 1.5.0
- opensuse-leap 16.0: sequoia-sq 1.5.0-bp160.1.1 ยท LGPL-2.0-or-later
- opensuse-leap 16.0: sequoia-sq 1.5.0-bp160.1.1 ยท LGPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms