connection string encrypt decrypt on web.config

Encrypt 

  1. Run Command Prompt as Administrator
  2. Go to C:\Windows\Microsoft.NET\Framework\v4.0.30319 
  3. cdC:\Windows\Microsoft.NET\Framework\v4.0.30319
  4. Enter this,
ASPNET_REGIIS -pef "connectionStrings" "D:\development\Divercybkup\Diversey_93212\Sana.Commerce.Startersite"


Decrypt


  1. Run Command Prompt as Administrator
  2. Go to C:\Windows\Microsoft.NET\Framework\v4.0.30319
  3. cdC:\Windows\Microsoft.NET\Framework\v4.0.30319
  4. Enter this,
ASPNET_REGIIS -pdf "connectionStrings" "D:\development\Divercybkup\Diversey_93212\Sana.Commerce.Startersite"



connectionStrings,securityKeys,machineKey

ASPNET_REGIIS -pdf "connectionStrings" "E:\New folder\beta\Frontend"
ASPNET_REGIIS -pdf "securityKeys" "E:\New folder\beta\Frontend"
ASPNET_REGIIS -pdf "machineKey" "E:\New folder\beta\Frontend"


ASPNET_REGIIS -pdf "connectionStrings" "E:\New folder\live\Frontend"
ASPNET_REGIIS -pdf "securityKeys" "E:\New folder\live\Frontend"
ASPNET_REGIIS -pdf "machineKey" "E:\New folder\live\Frontend"