i create a c# program that use mysql to verify user login.I googled about connection string security and every thing was about web.config file. Is that necessary to hide connection string in pure c# program?if yes, please give me reference to do that.
I encrypt my code, is that enough to protect connection string in my program?
private static MySqlConnection myConnection = new MySqlConnection("sample connection string");
tiny edit after solve the problem:
I find goof article and project to encrypt App.config designed for connection string that you can check it here
Integrated Security(uses the process' Windows account to pass as the credential) when at all possible. This makes it so I don't have to be concerned with securing my connection strings as tightly.