使用BGP动作城堡的PGP加密文件无法使用PGP命令行解密

时间:2015-03-27 13:00:05

标签: java bouncycastle pgp

我使用Bouncy Castle API加密了文件。我使用相同的API成功解密了该文件。

但是我无法使用PGP command line

解密文件

未显示任何错误消息,但未生成解密文件:

C:\pgp-cli>pgp arquivo-cripto-cast5-bin.pgp
Pretty Good Privacy(tm) Version 6.5.8
(c) 1999 Network Associates Inc.
Uses the RSAREF(tm) Toolkit, which is copyright RSA Data Security, Inc.
Export of this software may be restricted by the U.S. government.

File is encrypted.  Secret key is required to read it.

Key for user ID: contine
2048-bit RSA key, Key ID 0x150AAE5B, created 2015/03/26
Key can sign.

这可能是兼容性问题吗?

1 个答案:

答案 0 :(得分:2)

PGP 6.5.8 可怕的过时,从那时起密码学发生了很大的变化。有很多方法可以引入与旧的PGP版本的不兼容性,并且很难说出究竟是什么问题。从那个旧版本,新密码(对称和不对称),哈希和我认为甚至引入了压缩算法。

如果您不想购买更新的版本,请考虑使用GnuPG这是免费的,并且大多数甚至与PGP的参数兼容(并且可能比旧的PGP具有更广泛的用途,这是目前由赛门铁克拥有)。适用于Windows的简易GnuPG软件包可在GPG4Win上找到。