Follow by Email

Thursday, June 13, 2013

encrypt decrypt webconfig connectionStrings using visual studio command prompt in asp.net | Secure web config Connection Strings with RSACryptoServiceProvider Class in asp.net

hi in this post i will show how to encrypt decrypt webconfig connectionStrings with RSACryptoServiceProvider Class using visual studio command prompt in asp.net.

1. Go to Visual tools and select visual studio command prompt and run it as administrator.


2. Now to encrypt the connection string inside the web.config file.

use this below command

aspnet_regiis.exe -pef  "connectionStrings" "<application path>"



web.config


3. Now to decrypt the connection string inside the web.config.

use this below command

aspnet_regiis.exe -pdf  "connectionStrings" "<application path>"




web.config