The Encryption and Decryption of the Web.Config file’s ConnectionStrings section will be performed using aspnet_regiis.exe
aspnet_regiis.exe -pef “Connectionstrings” “D:/Irfan/MySolution/MyProject”.
Here aspnet_regiis is command
-pef is Encryption action to be performed.
“Connectionstrings” is connection string i.e name of the section
Next one is path
This command should be executed in visualstudio commandprompt in visual studio tools



