public abstract Encrypt ( XmlNode node ) : XmlNode | ||
node | XmlNode | |
return | XmlNode |
internal string EncryptSection (string clearXml, ProtectedConfigurationProvider protectionProvider) { XmlDocument doc = new ConfigurationXmlDocument (); doc.LoadXml (clearXml); XmlNode encryptedNode = protectionProvider.Encrypt (doc.DocumentElement); return encryptedNode.OuterXml; }
internal static string EncryptSection(string clearXml, ProtectedConfigurationProvider provider) { XmlDocument document = new XmlDocument { PreserveWhitespace = true }; document.LoadXml(clearXml); string name = document.DocumentElement.Name; return provider.Encrypt(document.DocumentElement).OuterXml; }
internal string EncryptSection(string clearXml, ProtectedConfigurationProvider protectionProvider) { XmlDocument doc = new ConfigurationXmlDocument(); doc.LoadXml(clearXml); XmlNode encryptedNode = protectionProvider.Encrypt(doc.DocumentElement); return(encryptedNode.OuterXml); }
internal static string EncryptSection(string clearXml, ProtectedConfigurationProvider provider) { XmlDocument xmlDocument = new XmlDocument { PreserveWhitespace = true }; xmlDocument.LoadXml(clearXml); XmlNode encNode = provider.Encrypt(xmlDocument.DocumentElement); return(encNode.OuterXml); }
internal static string EncryptSection(string clearXml, ProtectedConfigurationProvider provider) { XmlDocument document = new XmlDocument { PreserveWhitespace = true }; document.LoadXml(clearXml); string name = document.DocumentElement.Name; return(provider.Encrypt(document.DocumentElement).OuterXml); }
internal static string EncryptSection(string clearXml, ProtectedConfigurationProvider provider) { XmlDocument xmlDocument = new XmlDocument(); xmlDocument.PreserveWhitespace = true; xmlDocument.LoadXml(clearXml); string sectionName = xmlDocument.DocumentElement.Name; XmlNode encNode = provider.Encrypt(xmlDocument.DocumentElement); return encNode.OuterXml; }