-
-
Save garfbradaz/35ed05581c33a21e60f2e8cad54fa581 to your computer and use it in GitHub Desktop.
app.config with Cypher Data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<configSections> | |
<section name="CustomConfig" type="garfbradaz.Common.CustomConfigSections.EncryptedUserCredentialsSection, garfbradaz.Common" /> | |
</configSections> | |
<appSettings> | |
</appSettings> | |
<startup> | |
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /> | |
</startup> | |
<CustomConfig configProtectionProvider="MyEncryptionProvider"> | |
<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>longstringofdata</CipherValue> | |
</CipherData> | |
</EncryptedKey> | |
</KeyInfo> | |
<CipherData> | |
<CipherValue>anotherlongstringofdata</CipherValue> | |
</CipherData> | |
</EncryptedData> | |
</CustomConfig> | |
<configProtectedData> | |
<providers> | |
<add keyContainerName="MyCustomKeys" | |
useMachineContainer="true" | |
name="MyEncryptionProvider" | |
type="System.Configuration.RsaProtectedConfigurationProvider"/> | |
</providers> | |
</configProtectedData> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment