Skip to content

Instantly share code, notes, and snippets.

@garfbradaz
Last active April 12, 2018 19:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garfbradaz/15579e3120cb8e9a43dd4de186a55495 to your computer and use it in GitHub Desktop.
Save garfbradaz/15579e3120cb8e9a43dd4de186a55495 to your computer and use it in GitHub Desktop.
Example EncrypUserCredentials in a app.config
<?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>
<EncryptedUserCredentials>
<EncryptedUserCredential service="keyToCredential" userName="firstname.lastname" password="pwd12345@" />
</EncryptedUserCredentials>
</CustomConfig>
/configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment