摘录一段:
如果你有数据想要保密,你所需做的远不止选择加密算法这一件事。你应该统筹考虑你的系统安全。一般我们认为PGP是安全的。在作者写本文时,尚未听说任何PGP被破译的事例。但这并不表示所有用PGP加密的讯息都是安全的
大家先看一下,有兴趣再讨论。 给个例子,下面是我的 gpg 的公用密钥,导入之后就可以加密通讯了, 以后想个更好的办法交换公钥:
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQGNBF9gsYwBDAC/p/zDei0TsczWfMLAszxkYY5OUalK26Coc7HfHV13Nvd0MPEP
uzhBc3cQM+S0DrwspkntcIYCTPn1g7BDUrrIjy0nA9ucrEMrW6Kmfq/ctj0h4sg6
K/a239f3qG1Y3wRFJEKj/NXvOiXxSgMi2SqwsY9YBu0GGVlB/VoojecrIQtLEghl
KSHMm0SOUY3k/9RB+gGrxNH4x6RYwvEWDjzOgwPlQ1hOOQmhfOaflUqkU3Wm+gLM
6kAuI3L4+gfOXGFlWd7h/mZQZVqVf3lCLmLTSQ9h7/S3RsgbWspKW9xmVInReLSx
LMjZ0li3nUzxw8/qJITIRzqtFP9N08K1XNGqEPsOd+HprfNt78TEgJ2FcSJ1jUMZ
V4o7tfzuNh2A48pyz0HyidUywo97A8VhOMtFpVmW1kl5Oi00goCtXzTB7c0CV6Cw
duDTyPZ0i+75xqqV86ob0BeUhQ0V3ohzpEwKk+icuhcpTzH+XJrVsrBVVoWNvFLE
8ce5JXiorHmnkYkAEQEAAbQORk9PTElTSCBIS0ZPT0yJAdQEEwEKAD4WIQSYvR2i
ov5ZxO1FXHans2uDRs8lggUCX2CxjAIbAwUJA8JnAAULCQgHAgYVCgkICwIEFgID
AQIeAQIXgAAKCRCns2uDRs8lgu0MC/0cNhY6eXuht1FILJO3lHtiRhD3K5YJm0RG
IzUFlwUt5E4stn0n96U1H8h1VdrNZ4e5zzin/33wfnqIp1I2srMnWd9gVt7w66Ca
qxAX82AvzUGkD4rHC9py/01DxkZKrqywinuQPMYXvxMNACm4bsCBOWd0JCIzUK9D
/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