1SQ-ENCRYPT(1)                    USER COMMANDS                   SQ-ENCRYPT(1)
2
3
4

NAME

6       sq-encrypt - Encrypts a message
7
8       Encrypts  a message for any number of recipients and with any number of
9       passwords, optionally signing the message in the process.
10
11       The converse operation is "sq decrypt".
12
13

SYNOPSIS

15       sq encrypt [FLAGS] [OPTIONS] [--] [FILE]
16

FLAGS

18       -h, --help
19              Prints help information
20
21
22       -B, --binary
23              Emits binary data
24
25
26       -s, --symmetric
27              Adds a password to encrypt with.  The message can  be  decrypted
28              with either one of the recipient's keys, or any password.
29
30
31       --use-expired-subkey
32              If  a  certificate  has only expired encryption-capable subkeys,
33              falls back to using the one that expired last
34

OPTIONS

36       -o, --output FILE
37              Writes to FILE or stdout if omitted
38
39
40       --recipient-cert CERT-RING
41              Encrypts for all recipients in CERT-RING
42
43
44       --signer-key KEY
45              Signs the message with KEY
46
47
48       --mode MODE
49              Selects what kind of keys are considered for encryption.  Trans‐
50              port select subkeys marked as suitable for transport encryption,
51              rest selects those for encrypting data at rest, and all  selects
52              all  encryption-capable subkeys.  [default: all]  [possible val‐
53              ues: transport, rest, all]
54
55
56       --compression KIND
57              Selects compression scheme to  use   [default:  pad]   [possible
58              values: none, pad, zip, zlib, bzip2]
59
60
61       -t, --time TIME
62              Chooses  keys  valid  at  the specified time and sets the signa‐
63              ture's creation time
64

ARGS

66       FILE   Reads from FILE or stdin if omitted
67

EXAMPLES

69       # Encrypt a file using a certificate
70              $ sq encrypt --recipient-cert romeo.pgp message.txt
71
72       # Encrypt a file creating a signature in the process
73              $ sq encrypt --recipient-cert romeo.pgp --signer-key  juliet.pgp
74              message.txt
75
76       # Encrypt a file using a password
77              $ sq encrypt --symmetric message.txt
78
79

SEE ALSO

81       For the full documentation see <https://docs.sequoia-pgp.org/sq/>.
82
83       sq(1), sq-armor(1), sq-autocrypt(1), sq-certify(1), sq-dearmor(1),
84       sq-decrypt(1), sq-encrypt(1), sq-inspect(1), sq-key(1), sq-keyring(1),
85       sq-keyserver(1), sq-packet(1), sq-sign(1), sq-verify(1), sq-wkd(1)
86
87
88

AUTHORS

90         Azul <azul@sequoia-pgp.org>
91         Igor Matuszewski <igor@sequoia-pgp.org>
92         Justus Winter <justus@sequoia-pgp.org>
93         Kai Michaelis <kai@sequoia-pgp.org>
94         Neal H. Walfield <neal@sequoia-pgp.org>
95         Nora Widdecke <nora@sequoia-pgp.org>
96         Wiktor Kwapisiewicz <wiktor@sequoia-pgp.org>
97
98
99
1000.24.0 (SEQUOIA-OPENPGP 1.0.0)    MARCH 2021                     SQ-ENCRYPT(1)
Impressum