I currently have a .NET application that has an object which passes a string (a connection string) as a parameter to another object that does database manipulation.
This string isn't stored anywhere else and is only used by this behind-the-scenes object to provide the database manipulation object with a connection string.
Does my connection string pose a security problem when it is inside the code like this?
Or are connection strings only at risk when they are listed in an web.config file?
Why would you want to put your connection string in a web.config file as apposed to putting it directly into code as I have done?
Are hackers able to get into a compiled project and extract the value of a string inside an object used with that project? How???
I'm kind of confused and would love some clarification.
Thanks
-Frinny
This string isn't stored anywhere else and is only used by this behind-the-scenes object to provide the database manipulation object with a connection string.
Does my connection string pose a security problem when it is inside the code like this?
Or are connection strings only at risk when they are listed in an web.config file?
Why would you want to put your connection string in a web.config file as apposed to putting it directly into code as I have done?
Are hackers able to get into a compiled project and extract the value of a string inside an object used with that project? How???
I'm kind of confused and would love some clarification.
Thanks
-Frinny
Comment