How to create a key pair in .net?



How to create a key pair in .net?..

Answer / Ankit Johri

To create a key pair (RSA) in .NET, you can use the RSACryptoServiceProvider class. Here's an example: `RSACryptoServiceProvider rsa = new RSACryptoServiceProvider(); RSAParameters parameters = rsa.ExportParameters(true); // Save the exported parameters for future use`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

What are the providers available with VS.NET ?

2 Answers   TCS,


What is static constructor, when it will be fired?

1 Answers  


How do you pass value of a text box from page1.aspx to page2.aspx without storing it as a session value?

6 Answers   C Squared Systems,


Explain assemblies in .net?

1 Answers  


What is machine.config in .net?

1 Answers  


Explain the two different types of typecasting?

1 Answers  


What is Serialiazation?

1 Answers   TCS,


Explain the difference between static page and dynamic page?

1 Answers  


Garbage collector thread is what kind of a thread?

1 Answers  


What does stateless mean?

1 Answers   BirlaSoft,


What?s different about a Windows service as compared to a regular application?

1 Answers  


Explain the different types of proxy patterns?

1 Answers  


Categories