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.
This commit is contained in:
nikostr
2022-05-31 02:21:29 +00:00
committed by GitHub
parent 5d7574cb74
commit a7f4d79520

View File

@@ -12,9 +12,9 @@
`gpg --clearsign {{doc.txt}}` `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`): - Encrypt `doc.txt` with only a passphrase (output to `doc.txt.gpg`):