In all my VB6 applications, connection information was stored in encrypted fields in the database. Nobody has access to the database and if anyone did, all they would get to see was a bunch of encrypted values.
There was always a flaw with this method. Fetching the connection information required using a hard-coded id/password in the application that would fetch this connection information and form a string.
In the .NET world, I am currently storing this hard-coded id / password in app.exe.config file. The recommended method is to encrypt the connection string in the file?
Which classes can I use to do this encryption / decryption?