GNU Privacy Guard. See
gpg2
for GNU Privacy Guard 2. Most operating systems symlinkgpg
togpg2
. More information: https://gnupg.org.
gpg --full-generate-key
doc.txt
without encryption (writes output to doc.txt.asc
):gpg --clearsign doc.txt
doc.txt
for alice@example.com and bob@example.com (output to doc.txt.gpg
):gpg --encrypt --sign --recipient alice@example.com --recipient bob@example.com doc.txt
doc.txt
with only a passphrase (output to doc.txt.gpg
):gpg --symmetric doc.txt
doc.txt.gpg
(output to stdout
):gpg --decrypt doc.txt.gpg
gpg --import public.gpg
stdout
):gpg --export --armor alice@example.com
stdout
):gpg --export-secret-keys --armor alice@example.com