Jinfang's Personal Page

如果有一天你突然想起了我

用户工具

站点工具


blog:2018:使用pgp

使用PGP

给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

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

评论

blog/2018/使用pgp.txt · 最后更改: 2025/05/05 16:46 由 jinfang