using System.Security.Cryptography;
using System;
using System.Text;

public class KeyMan : MarshalByRefObject
{
   public KeyMan() {}
   public KeyMan(string b64) 
   {
      k = b64;
   }
   public RSA Key
   {
      get
      {
        RSA rsa = new RSACryptoServiceProvider();
        byte[] by = Convert.FromBase64String(k);
        string pubxml = (new ASCIIEncoding()).GetString(by);
        rsa.FromXmlString(pubxml);

        return rsa;
      }
   }
   private string k = null;
}