LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

sq

Modern Sequoia OpenPGP command-line tool

TLDR

Generate key
$ sq key generate --userid "[Name <email>]"
copy
Encrypt file
$ sq encrypt --recipient-file [key.pgp] [file]
copy
Decrypt file
$ sq decrypt [file.pgp]
copy
Sign file
$ sq sign [file]
copy
Verify signature
$ sq verify --signer-file [key.pgp] [file.sig]
copy
Inspect packet
$ sq inspect [file.pgp]
copy

SYNOPSIS

sq command [options] [args]

DESCRIPTION

sq is the command-line interface for Sequoia PGP, a modern OpenPGP implementation written in Rust. It provides key generation, encryption, decryption, signing, and signature verification following the OpenPGP standard.The tool supports standard PGP workflows including key pair generation with user IDs, file encryption for recipients using public keys, and detached or inline signatures. The inspect subcommand allows examining OpenPGP packet structures for debugging and verification purposes.Sequoia PGP was developed by former GnuPG contributors as a memory-safe, modular alternative to traditional PGP implementations. sq aims to provide a cleaner command-line interface while maintaining full OpenPGP compatibility.

SUBCOMMANDS

key

Generate, modify, and inspect OpenPGP keys.
encrypt
Encrypt data for one or more recipients.
decrypt
Decrypt data using a secret key.
sign
Create an OpenPGP signature (inline, detached, or cleartext).
verify
Verify an OpenPGP signature.
inspect
Examine the structure of OpenPGP packets without decrypting.
cert
Manage TPKs (transferable public keys / certificates).
pki
Authenticate and certify keys via a Web of Trust.

COMMON OPTIONS

--recipient-file FILE

Encrypt for the certificate(s) in FILE.
--signer-file FILE
Use the secret key in FILE to sign or verify with.
--output FILE, -o FILE
Write output to FILE instead of stdout.
--binary
Emit binary OpenPGP data instead of ASCII-armored output.
--force
Overwrite existing output files.

CAVEATS

Different from GPG. Sequoia-specific. Some features differ.

HISTORY

sq is the CLI for Sequoia PGP, a modern OpenPGP implementation written in Rust by former GnuPG developers.

SEE ALSO

gpg(1), age(1), rage(1)

Copied to clipboard
Kai