有关java中公钥加密的任何教程吗? [英] Any tutorials on public key encryption in java?

查看:350
本文介绍了有关java中公钥加密的任何教程吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经能够找到有关对称加密和散列的信息,但是我在查找有关java的任何类型的公钥加密的大量信息方面遇到了很多麻烦。我想做的是做一个非常简单的概念验证程序,它接受一个字符串(或我认为的文件),用公钥加密它,然后用私钥解密它。

I've been able find information on symmetric encryption and hashing but I've been having quite a bit of trouble finding much information on any sort of public key encryption for java. What I'd like to do is make a very simple proof of concept program that takes a string ( or a file I suppose), encrypts it with a public key and then decrypts it with a private key.

任何教程链接或示例都将不胜感激。我只是想说明如何在Java中使用公钥加密。

Any tutorial links or examples would be appreciated. I just want to make something demonstrating how you can use public key encryption in Java.

推荐答案

有很多资源在网络关于那个。基本上它绕过KeyPairGenerator类。

There are quite a few resources on the web about that. Basically it turns around the KeyPairGenerator class.

参见 http://www.informit.com/articles/article.aspx?p=170967&seqNum=4 示例程序。

这篇关于有关java中公钥加密的任何教程吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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