How To Encrypt Connection Strings ?

The connectionStrings element can be encrypted by running the Visual Studio 2005 Command Prompt, executing the following command, and specifying the full path to your Web site folder: aspnet_regiis -pef "connectionStrings" "C:\...\EncryptWebSite" Note that the –pef switch requires you to pass the physical Web site path, which is the last parameter. Be sure to verify the path to your Web.config file. The encrypted Web.config file will look like the following:

Post a Comment


Close Menu