.NET ConnectionString Encyption

The following command will encrypt your connection sting in your web.config file. The connection string must all ready be in place.

For C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG

-pkm switch encrypts the machine.config rather and web.config (default).

aspnet_regiis.exe -pef "connectionStrings" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config" -prov "DataProtectionConfigurationProvider"

Comments RSS


Leave a comment:


Blog | Contact | Gallery | Links | Sandbox | Social Networking | Weather | Web Design


Copyright © 1997-2009 KCSH. All rights reserved.