0
Reply

Re: System.Security.Cryptography.RSAParameters

Edward

Edward

Dec 9 2006 10:04 AM
2.4k
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.