1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-15 10:35:45 +02:00

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`):