Edward

Edward

  • NA
  • 1
  • 0

Re: System.Security.Cryptography.RSAParameters

Dec 9 2006 10:04 AM
Hi,
I want to know how to create my own public & private key pairs, is it correct to use the following codes? And what are valid parameters P, Q, Modulus, any sample codes?

----------------------------------------------------------------------
RSACryptoServiceProvider rsa = new RSACryptoServiceProvider(1024);
System.Security.Cryptography.RSAParameters parameters = new System.Security.Cryptography.RSAParameters();
parameters.P=???;
parameters.Modulus=???;
.............
...............
rsa.ImportParameters(parameters)

----------------------------------------------------------------------


Thanks & best regards,
Ed.