Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 13-Aug-18 0:41am
Comments
F-ES Sitecore 13-Aug-18 6:31am    
Move the code to wherever you need to run it. As a very basic rule of thumb the page event is the closest equivalent to the main function in a console app.
Member 8583441 13-Aug-18 6:36am    
I can understand it is console application main method but where it has to be considered in web application i am asking

1 solution

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

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!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900