锦方的个人网页

使用PGP

发布 · 约 108 字 · 预计 1 分钟

归档记录:本文最后更新于 2018 年,文中涉及的软件版本、配置或命令可能已随环境演进发生变化。

本文目录(共 6 节)

给vpn厂商反馈邮件用到了pgp现在还没搞懂理一下过程。

我用的是mac 需要安装两个软件和一个插件(GnuPG,Mozilla Thunderbird和Enigmail) 这是eff的教程https://ssd.eff.org/en/module/how-use-pgp-mac-os-x

os/x的GnuPG的使用 #

创建一个非对称密钥 #

gpg2 --gen-key

导出公钥 #

gpg2 --armor [email protected] > a.asc

导入对方的密钥 #

gpg2 --import xxx.asc

加密消息 #

gpg2 --armor --encrypt --recipient 收件人邮箱 message.txt

解密消息 #

gpg2 --decrypt message.txt.asc > message.txt

使用私钥解密文件需要使用密码

✉ 对本文有补充或勘误?欢迎就本文写信交流。