I want to encrypt the connectionString settings in web.config.
I read that I'm able to use:
aspnet_regiis.exe -pdf “connectionStrings” C:\Projects\DemoApplication
But I have some questions:
My website is in my file system now, but I'll publish it later. It's ok to encrypt this way (above)?
My website works with typed DataSet to access SQL Server. Encrypting the connectionString will change any thing?
When I need to use the connectionString, may I use just:
string conn = ConfigurationManager.ConnectionStrings["SQL"].ConnectionString;
to get the connectionString? (The ASP.net will decrypt it automatically, right?)
Thanks in advance!