PGP 使用什么算法来使用密码加密私钥?
PGPKeyRingGenerator 构造函数采用密码来加密私钥。它使用什么算法来执行此操作?它有一个名为 encAlgorithm 的字段,但我找不到任何解释这些算法是什么的文档。
The PGPKeyRingGenerator constructor takes in a passphrase to encrypt the private key. What is the algorithm that it uses to do this? It has a field called encAlgorithm, but I couldn't find any documentation explaining what these algorithms are.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
默认情况下,PGP 使用 IDEA(参考此)。
其他算法可以在encAlgorithm中定义,OpenPGP支持以下算法,
它们都使用CFB模式,没有填充。
By default, PGP uses IDEA (Refer this).
The other algorithms can be defined in encAlgorithm and following are supported by OpenPGP,
They all use CFB mode with no padding.
这取决于PGP软件,例如GPG默认使用CAST5。
It depends on PGP software, for example GPG uses CAST5 by default.
摘自此维基百科页面。
它应该是您正在寻找的。
Taken from this wikipedia page.
It should be what you are looking for.