使用Java进行PGP加密和解密

问题描述:

我想使用PGP密钥解密文件。

I want to decrypt a file using PGP keys.

我已经下载了PGP密钥安装程序并进行安装。使用它,我创建了一个文本文件,并使用PGP密钥加密文本文件。

I have downloaded PGP keys installer and installed. Using that I created a text file and encrypted the text file using PGP keys.

然后我得到一个加密的.pgp扩展文件。现在我想使用PGP使用Java代码解密同一个文件。

Then I got a .pgp extension file which is encrypted. Now I want to decrypt the same file using Java code using PGP.

在Java中,如何解密已使用PGP密钥加密的文本文件?

In Java, How do I decrypt a text file which is already encrypted using PGP keys?

尝试看看这个主题。我刚刚看了一下,但我认为这是你需要的。
http://sloanseaman.com/ wordpress / 2012/05/13 / revisited-pgp-encryptiondecryption-in-java /

Try do see this topic. I have just taken a brief look at it, but I think it is what you need. http://sloanseaman.com/wordpress/2012/05/13/revisited-pgp-encryptiondecryption-in-java/