gpgGNU Privacy Guard. 更多信息:https://gnupg.org/documentation/manuals/gnupg/Invoking-GPG.html.
gpg {{[--full-gen-key|--full-generate-key]}}
doc.txt 进行签名(生成 doc.txt.asc,格式为 ASCII 码形式):gpg --clearsign {{doc.txt}}
doc.txt(生成 doc.txt.gpg):gpg {{[-es|--encrypt --sign]}} {{[-r|--recipient]}} {{alice@example.com}} {{[-r|--recipient]}} {{bob@example.com}} {{doc.txt}}
doc.txt(生成 doc.txt.gpg):gpg {{[-c|--symmetric]}} {{doc.txt}}
doc.txt.gpg(输出到标准输出):gpg {{[-d|--decrypt]}} {{doc.txt.gpg}}
gpg --import {{public.gpg}}
gpg --export {{[-a|--armor]}} {{alice@example.com}}
gpg --export-secret-keys {{[-a|--armor]}} {{alice@example.com}}