使用rsa算法进行密钥加密 [英] Encryption with key using rsa algorithm

查看:58
本文介绍了使用rsa算法进行密钥加密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用RSA算法对纯文本进行加密.如何获得公钥?我在xml文件中看到了一个方法存储密钥.但是如何在加密代码中使用该密钥?

I want to encrypt plaintext using RSA algorithm. How can I get public key? I saw one method store key in xml file.But how I use this key in code of encryption?

推荐答案

我不确定,但是我觉得你缺少公钥密码学的精髓.
请参见 http://en.wikipedia.org/wiki/Public-key_cryptography [ http://en.wikipedia.org/wiki/RSA [ http://msdn.microsoft.com/en-us/library/system. security.cryptography.rsa.aspx [ ^ ].

您没有想知道的东西,但在上面引用的文章中找不到.

—SA
I''m not sure, but I feel you''re missing the very essence of Public-key Cryptography.
See http://en.wikipedia.org/wiki/Public-key_cryptography[^].

Now, read my lips: you always encrypt with one key and decrypt with another one.

See also:
http://en.wikipedia.org/wiki/RSA[^],
http://msdn.microsoft.com/en-us/library/system.security.cryptography.rsa.aspx[^].

There is nothing you wanted to know but cannot find in the articles referenced above.

—SA


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

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