使用Java进行PGP加密和解密 [英] PGP Encryption and Decryption with Java

查看:730
本文介绍了使用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/

这篇关于使用Java进行PGP加密和解密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆