Answer the question
In order to leave comments, you need to log in
How to protect MYSQL data from C# decompilation?
There is a connection to the MYSQL database, via C # when a button is pressed.
Is it possible to somehow protect the data for connecting to the database from decompilation?
I read about some ways, for example, through a PHP file on your server, from which requests will already go. Similar variants DO NOT INTEREST me, it is necessary for me directly through C#.
Answer the question
In order to leave comments, you need to log in
You can obfuscate the C# code, encrypt the lines in it. It just makes no sense! And it's stupid to store data to connect to your database on the client side! Facepalm...
MySQL doesn't work that way. Do not engage in nonsense, but make a normal API.
Authorization - through the database. You can store the login in the hardware key. And everything else can be pulled out with a debugger, if you want - this is from schoolchildren.
The connection string, even if you pull it out, will not give anything, but you do not need to store the login and password in it. We ask for a username and password and use them to connect to the database. Naturally, we create users in the database and grant them rights. In this case, you do not need to start your own user base.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question