Since one has to provide the C++ code with the SQL-database information such as the username and password before one can insert information to the database, I want to know how one can do so in a way the application user can not reverse-engineer it and get my database credentials.
In my specific case I want to make an application that asks the user for feedback. The user can provide 1 to 5 stars, aswell as a comment. I want to be able to store this feedback in a SQL-database ... ... how can I do this safely with C++ ?