Friday, 22 June 2012

Encrypt or Decrypt Connection Strings in web.config file using ASP.NET in IIS


In Command Prompt, Goto this location and type that command
C:\Windows\Microsoft.Net\Framework\v2.0.50727
(this v2.0.50727 folder contains  aspnet_regiis.exe )

Encrypt connectionStrings  in web.config of IIS based site:
aspnet_regiis.exe -pe "connectionStrings" –app "/SampleWebSite”

Decrypt connectionStrings in web.config of IIS based site:
aspnet_regiis.exe -pd "connectionStrings" –app "/SampleWebSite

No comments:

Post a Comment