From a7f4d795207eb6635c4367690aa5401860e79585 Mon Sep 17 00:00:00 2001 From: nikostr Date: Tue, 31 May 2022 02:21:29 +0000 Subject: [PATCH] gpg: add signing and multiple recipients (#8111) Update the `gpg` encryption example to indicate that multiple recipients and signing is possible. One use-case for multiple recipients is being able to send a file to someone while also retaining the option to decrypt it oneself. --- pages/common/gpg.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/gpg.md b/pages/common/gpg.md index 48d212e1a3..0d34b14334 100644 --- a/pages/common/gpg.md +++ b/pages/common/gpg.md @@ -12,9 +12,9 @@ `gpg --clearsign {{doc.txt}}` -- Encrypt `doc.txt` for alice@example.com (output to `doc.txt.gpg`): +- Encrypt and sign `doc.txt` for alice@example.com and bob@example.com (output to `doc.txt.gpg`): -`gpg --encrypt --recipient {{alice@example.com}} {{doc.txt}}` +`gpg --encrypt --sign --recipient {{alice@example.com}} --recipient {{bob@example.com}} {{doc.txt}}` - Encrypt `doc.txt` with only a passphrase (output to `doc.txt.gpg`):