Enterprise Library 3.1 - 揭秘系列(2) - Encrypting Configuration Data
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d5a3a" />
</configSections>
<dataConfiguration configProtectionProvider="RsaProtectedConfigurationProvider">
<EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element"
xmlns="http://www.w3.org/2001/04/xmlenc#">
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc" />
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<EncryptedKey xmlns="http://www.w3.org/2001/04/xmlenc#">
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5" />
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<KeyName>Rsa Key</KeyName>
</KeyInfo>
<CipherData>
<CipherValue>W7O/tOMnbLuUSg1SGtK+qLvhjOvsI47fXfB0EIZOAVrGPJz0tBYp0m51ylFMuhzvZm34yf3SikrE59fIYs9kGxP9SrrHgeNKO9Om4oK3abaomfWiGYdyQVFJsTFj4oqivUKwKA4YgDyRDhWAZ6ajAfL5UfJ0OLINGRlpwYrhyI=</CipherValue>
</CipherData>
</EncryptedKey>
</KeyInfo>
<CipherData>
<CipherValue>GbkCFTVig17M7AQsU+hd4CTArpsO2PBf1GfAxNfb9mPRgO1C/wG+nvkIpnucSsK0uKT4PLZ2+40mzw34E2ZC0XDSVvjbzkxG</CipherValue>
</CipherData>
</EncryptedData>
</dataConfiguration>
<connectionStrings configProtectionProvider="RsaProtectedConfigurationProvider">
<EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element"
xmlns="http://www.w3.org/2001/04/xmlenc#">
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc" />
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<EncryptedKey xmlns="http://www.w3.org/2001/04/xmlenc#">
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5" />
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<KeyName>Rsa Key</KeyName>
</KeyInfo>
<CipherData>
<CipherValue>lDjNTFQ241LJLekRnHByvFJHwK3Ra/C8R+fM0VHdz4YGSf07+SjYjKx+lGX6AFQMwcgfqXyVP0dkiygn1DrRGrLJpk1HMZakxPgXMEdPD8Cy13GWHz+91xzaNycWQBSGpRDWPrHIdyZkQLtPh9xIB8z9X4d+B/xJQyHUNKh23VA=</CipherValue>
</CipherData>
</EncryptedKey>
</KeyInfo>
<CipherData>
<CipherValue>T4lPv0HCQ6aA9Ucrjd9KmBc5CHbiggHlhpe+MwdaueuaX1Bq/+kvXRSHRprhmPxCjTJ9/aXlQimoBxcCyH7Q0HxdwE1PEYQSnI8oWpLEamq9TtijJ60KIG4lEN8exi/IPvXRSEDDtW8B7Pps4Zy+HVlzYfxAXLdNdgQpnm8lZ/gAaNHxH4f3hrF+MB51yPD4k5fP5HDnP8166rI7ZXOZSt6D2zpS+Gaa30xFrUAMqxVVFLOHuFE3cLnV6L3dhjUStjthP/3CRTytnTBNllcQF71ouYNi5HkuC6FLYcSigI9s3TpmYQ6pKpcZfAdXitk/T1A978/dPg=</CipherValue>
</CipherData>
</EncryptedData>
</connectionStrings>
<appSettings />
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilatin debug="true" />
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows" />
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
t�� be displayed in place of a error stack trace.
<cust乔mErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
</configuration>