Does anyone know of how I shoulid go about storing connection parameters (ie. server name/IP, database user name, database user password, database name, etc) on a Windows computer for use by the program I'm working on?
I'm writing a database app (Windows desktop app, not web app or Windows store app) that will use MySQL and need to access it, however, I want to make it so that if the database is moved (or the name is changed, or username changed, or password is changed) that within my program, the user can go in and change the parameters to connect using the new connection parameters.
My question is where should I store this, and how can I do it securely (mainly the username and password). The other stuff could be stored in plain text. I have heard there are ways to store an encrypted string (probably only 128-bit) into the registry.
Suggestions or ideas? How do other programs do it? I don't really want to hard-code the parameters as it would be troublesome if and when the program is distributed, so I'd rather have them be customizable from the app itself.
I'm writing a database app (Windows desktop app, not web app or Windows store app) that will use MySQL and need to access it, however, I want to make it so that if the database is moved (or the name is changed, or username changed, or password is changed) that within my program, the user can go in and change the parameters to connect using the new connection parameters.
My question is where should I store this, and how can I do it securely (mainly the username and password). The other stuff could be stored in plain text. I have heard there are ways to store an encrypted string (probably only 128-bit) into the registry.
Suggestions or ideas? How do other programs do it? I don't really want to hard-code the parameters as it would be troublesome if and when the program is distributed, so I'd rather have them be customizable from the app itself.