I am making an application that connects to the database. Currently I am using an .ini file to connect an application to the database. I also created a program that will modify the .ini file so that the user or admin can dynamically change the connection string to the database.
Now my problem is the .ini file is readable through notepad. I also tried to encrypt the .ini file using characters but when I try to deploy my application on windows xp, the application can't be read the the .ini file. Some of the characters can't be read by notepad.
Can you give me an idea how to implement connection using external files? What I need is an external file that can't be read by users. Can only be read by my program. Only admin can modify the connection string such as username,password and directory of the database.
I am open to any idea other than using .ini files.