Wednesday, November 25, 2009

Encrypting/Decrypting any section of web.config file

To Encrypt on IIS
aspnet_regiis.exe -pe "[Section To Encrypt]" -app "/[Virtual Directory on IIS]"

eg---
aspnet_regiis.exe -pd "connectionStrings" -app "/vitualdirectory"
To decrypt the same use de instead of pe

No comments:

Post a Comment

Followers