如何在不知道密码的情况下将GPG键转换为.ASC文件
我将密码丢给了GPG Keypair,需要将其恢复。在这样做的过程中,我需要将文件转换为
gpg2john
。但是,GPG CLI要求使用一个密码将其转换为ASCII-ARMORDER版本……我没有。无论如何,我是否可以从密钥中获取.ASC
文件。
我无法使用以下命令,因为它需要密码。
gpg --export-secret-key --armor
注意:恢复丢失的GPG密码似乎没有任何真实答案。
I have lost the passcode to a GPG keypair, and need to recover it. In the process of doing so I need to convert into a .asc
file for gpg2john
. However the GPG cli askes for a password to convert it into the ascii-armored version... which I do not have. Is there anyway for me to get the .asc
file from just the keys.
I can not use the below command as it requires a password.
gpg --export-secret-key --armor
Note: recover lost gpg password doesn't seem have any real answers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
显然(请参阅恢复丢失的gpg密码),gnupg添加了代码以需要新的代码,以便在新的导出中进行导出。版本。如果您安装了旧版本,则可以像
下致电
您不必输入密码词的情况
。不用说,仅将GPG1用于该任务,而不是用于持续的加密;)
Apparently (see recover lost gpg password), gnupg added code to require a passphrase for export in newer versions. If you install an old, old version, like
you can then call
without having to enter a passphrase.
Needless to say, only use gpg1 for that one task, not for ongoing encryption ;)