public string ExportXML(string type) { if (type == "public_key") { return(XmlParser.CreatePublicKeyXml(saveDirectory, rsa.getPublicKey())); } else if (type == "message") { return(XmlParser.CreateMessageXml(saveDirectory, encryptedMessage)); } throw new NotImplementedException(); }