如何在rsa算法中获取公钥和私钥 [英] How to get public key and private key in rsa algorithm

查看:465
本文介绍了如何在rsa算法中获取公钥和私钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法理解密钥是如何从rsa.toxmlstring方法获得的。为此,我看到这个网站 rsa - 在c#中使用RSACryptoServiceProvider查找公钥和私钥 - Stack Overflow [ ^ ]了解如何生成密钥但我不能请清楚地解释清楚任何人。



我尝试了什么:



在那个网站他们正在解释我为RSA算法采用ToXmlString()。我的问题是我正在使用asp.net Web应用程序项目,其中我喜欢使用RSA算法。它应该创建的ToXmlString()方法,它们明确提到要采用main方法。如何获得钥匙请让我认识任何人。在此先感谢

I can't able to understand how the keys are getting from the rsa.toxmlstring method. For this i am seeing this website "rsa - Find the public and private keys using RSACryptoServiceProvider in c# - Stack Overflow[^]" to understand how to generate the keys but i can't please explain me clearly anyone.

What I have tried:

In that site they are explaining me to take ToXmlString() for RSA Algorithm. My Question is i am using asp.net web application project in which I like to use RSA Algorithm. ToXmlString() method where it should be create in that they clearly mentioned to take at main method. And how to get the keys please let me know anyone. Thanks in advance

推荐答案

引用:

我可以理解它是控制台应用程序主方法,但它必须在网络应用程序中考虑我要求

I can understand it is console application main method but where it has to be considered in web application i am asking



说实话,如果你不明白,那么你不应该玩任何与安全性 - 这是任何有能力的Web开发人员在开始hello world之前必须知道的基本内容!



回到开始,学习如何使用web应用程序工作,获得编写它们的一些经验,当你开始考虑安全性时 - 在你完全掌握基础知识之前完成它是非常重要的!


To be honest, if you don;t understand that, then you shouldn't be playing with anything to do with security - this is basic stuff than any competent web developer has to know before he even gets started on "hello world!"

Go back to the beginning, learn how web apps work, get some experience in writing them, and when you have that down pat start thinking about security stuff - it's far, far too important to be worked on before you have the basics absolutely solid!


这篇关于如何在rsa算法中获取公钥和私钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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