0
Answer

Re: System.Security.Cryptography.RSAParameters

Edward

Edward

17y
2.4k
1
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.