I'm planning to encrypt the connection strings of a web configuration file belonging to an application which will be run in a server farm. I am aware of the aspnet_regiis command line tool to encrypt the sections using it. But I have some doubts, which I expect you guys can solve.
My question is that if I encrypt the connectionstrings and the web.config file is stolen by some hacker, will he be able to decrypt it using the same command line with -pe switch? The same is shown below.
- My Servers, My Web.Config, Not Encrypted (I created pure web config)
- My Servers, My Web.config, Encrypted (I encrypted web config)
- Someone's server, My web.config, Encrypted (Someone stole my web config)
Is he able to decrypt using the same commandline like
aspnet_regiis -pe "connectionStrings" -app "/SampleApplication" -prov "RsaProtectedConfigurationProvider"