如何在不知道密码的情况下将GPG键转换为.ASC文件

发布于 2025-01-24 00:07:23 字数 426 浏览 1 评论 0原文

我将密码丢给了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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

往事随风而去 2025-01-31 00:07:23

显然(请参阅恢复丢失的gpg密码),gnupg添加了代码以需要新的代码,以便在新的导出中进行导出。版本。如果您安装了旧版本,则可以像

brew install [email protected]

下致电

gpg1 -a --export-secret-keys ID >exportedPrivateKey.asc

您不必输入密码词的情况

。不用说,仅将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

brew install [email protected]

you can then call

gpg1 -a --export-secret-keys ID >exportedPrivateKey.asc

without having to enter a passphrase.

Needless to say, only use gpg1 for that one task, not for ongoing encryption ;)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文