Encrypt Decrypt connectionstring in Web.Config easily

Encrypt Decrypt
  1. Open C:\Windows\System32\CMD.exe As Administrator
  2. In CMD type CD C:\Windows\Microsoft.NET\Framework64\v4.0.30319
  3. In CMD type aspnet_regiis.exe -pef connectionStrings “Path of the Folder containing the Web.Config file”
    Ex: aspnet_regiis.exe -pef “connectionStrings” “D://PROJECTS/SAMPLE_PROJECT”
  4. Set to identity impersonate false for project web.config
    <system.web>
    <identity impersonate="true" />
    </system.web>
  1. Open C:\Windows\System32\CMD.exe As Administrator
  2. In CMD type CD C:\Windows\Microsoft.NET\Framework64\v4.0.30319
  3. In CMD type aspnet_regiis.exe -pdf “connectionStrings” “Path of the Folder containing the Web.Config file”
    Ex: aspnet_regiis.exe -pdf “connectionStrings” “D://PROJECTS/SAMPLE_PROJECT”

--

--

Craftsment, AvGeek, Cyclist

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store