using System;
using System.Security.Cryptography;
public class Program
{
public static void Main()
RSACryptoServiceProvider rsa = new RSACryptoServiceProvider();
//Save the public key information to an RSAParameters structure.
RSAParameters rsaKeyInfo = rsa.ExportParameters(false);
Console.WriteLine(rsa.ToXmlString(false));
}