N
N
ninja op op2020-04-25 22:17:27
MySQL
ninja op op, 2020-04-25 22:17:27

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

3 answer(s)
S
Sergey Karbivnichy, 2020-04-25
@kur4chyt

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.

A
Alexander, 2020-04-25
@NeiroNx

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.

R
Roman, 2020-04-25
@yarosroman

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 question

Ask a Question

731 491 924 answers to any question