using System.Security.Cryptography.Xml;

public class MakeRSAKey
{
public static void Main(string [] args) 
{
     RSAKeyValue rsa = new RSAKeyValue();
     
     string pub = rsa.Key.ToXmlString(false);
     string prv = rsa.Key.ToXmlString(true);
     
     FileUtil.SaveString("PubKey.xml",pub);
     FileUtil.SaveString("PrvKey.xml",prv);

     System.Console.WriteLine("PubKey.xml and PrvKey.xml generated");
}
}