Tuesday, November 28, 2006

Encrypt/Decrypt web.config

To encrypt the appSettings section of web.config

aspnet_regiis -pe "appSettings" -site "YourWebsite" -app "/"

and to decrypt

aspnet_regiis -pd "appSettings" -site "YourWebsite" -app "/"

You can encrypt any portion of the web.config file.

Simple

No comments: