Posted: 6/3/2011
Is there anyway to create a valid connectionString without having a plain-text password in a file on the server? I can't use Windows authentication, because it is an Internet (as opposed to Intranet) application. So as far as I can tell, my connectionString must contain "UserName=*;Password=*;" elements. This needs to be either hard coded into an ASPX web page, or stored in the web.Config file. If someone hacks their way into accessing these files, then they have the password to the Database, as well. Is there anyway to avoid this?
Posted: 6/5/2011
Yes. You can encrypt the password in your web.config file.
Check the following articles:
Hope this helps,Hajan
Posted: 6/6/2011
http://msdn.microsoft.com/en-us/library/Aa302403