//Generate a public/private key pair. RSACryptoServiceProvider RSA = new RSACryptoServiceProvider(); //Save the public key information to an RSAParameters structure. RSAParameters RSAKeyInfo = RSA.ExportParameters(true); //public key TextBox5.Text = Convert.ToBase64String(RSAKeyInfo.Exponent); // private key TextBox6.Text = Convert.ToBase64String(RSAKeyInfo.D);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)