SQ(1)

NAME
sq encrypt - Encrypts a message

SYNOPSIS
sq [GLOBAL OPTIONS] encrypt [OPTIONS] FILE

DESCRIPTION
Encrypts a message.

Encrypts a message for any number of recipients and with any number of passwords, optionally signing the message in the process.

The converse operation is "sq decrypt".

OPTIONS

  Global options

-f, --force
    Overwrites existing files

--help
    Print help information

--known-notation=NOTATION
    Adds NOTATION to the list of known notations

--output-format=FORMAT
    Produces output in FORMAT, if possible

--output-version=VERSION
    Produces output variant VERSION.

--version
    Print version information

  Subcommand options

-B, --binary
    Emits binary data

--compression=KIND
    Selects compression scheme to use

--help
    Print help information

--mode=MODE
    Selects what kind of keys are considered for encryption.

-o, --output=FILE
    Writes to FILE or stdout if omitted

--private-key-store=KEY_STORE
    Provides parameters for private key store

--recipient-file=CERT_RING_FILE
    Encrypts to all certificates in CERT_RING_FILE

-s, --symmetric
    Adds a password to encrypt with

--signer-file=KEY_FILE
    Signs the message using the key in KEY_FILE

-t, --time=TIME
    Chooses keys valid at the specified time and sets the signature's creation time

--use-expired-subkey
    Falls back to expired encryption subkeys

--version
    Print version information

EXAMPLES

Encrypt a file using a certificate

    sq encrypt --recipient-file romeo.pgp message.txt

Encrypt a file creating a signature in the process

    sq encrypt --recipient-file romeo.pgp --signer-file juliet.pgp message.txt

Encrypt a file using a password

    sq encrypt --symmetric message.txt

SEE ALSO
sq(1).

For the full documentation see <https://docs.sequoia-pgp.org/sq/>.

VERSION
0.28.0 (sequoia-openpgp 1.13.0, using Nettle)