Search code examples
.netenterprise-library

using the enterprise library 5 to encrypt my connection strings and appSetting


I have a wpf4 that I am referenced the enterprise library 5. I want to encrypt my connectionstrings and appsettings but I am not 100% sure how to do this.

Can anyone point me in the right direction for encrypting using the entlib5. There seems only to be useful information out there for the version 3.1 & 4.

Any help would be great!


Solution

  • Encrypting parts of the configuration file is a feature of .NET and is transparent for any code reading the configuration file through the .NET configuration API.

    You can read more about encrypting configuration files here or use our good old friend.