public static string getStringFromKey(Org.BouncyCastle.Crypto.AsymmetricKeyParameter key) { return(System.Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(Convert.ToString(key.GetHashCode())))); }