/// <summary> /// XML document dencoding. /// </summary> /// <param name="xmlDoc">XML document.</param> public void DecryptXmlDocument(XmlDocument xmlDoc) { XmlEncryptor.Decrypt(xmlDoc, _rsaKeyDecrypt, "rsaKey"); }
/// <summary> /// XML document encoding. /// </summary> /// <param name="xmlDoc">XML document.</param> public void EncryptXmlDocument(XmlDocument xmlDoc) { XmlEncryptor.Encrypt(xmlDoc, xmlDoc.DocumentElement.Name, _rsaKeyDecrypt, "rsaKey"); }