In my application I'm currently saving the connection string to the following area:
However I realized that this is bad practice since the connection string can be viewed by the user. I searched around the internet and most answers recommended to save the connection string in my
app.config file, however the user can still see the connection string so it's still not safe. I thought about setting
my connection string to a string and declaring it every time I startup my program but that seems inefficient.
What is the safest way to save my connection string in order to hide it from the user ? Thank you.
Edit: this is the connection string: