Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# mysql - decompile shows my sql connection string

Tags:

c#

mysql

exe

i have made a program and when i decompiled it with a freeware program(CodeReflect) i was able to see my mysql connection string. is there a way to avoid this? Thanks in advance.

like image 732
Lazaros Morfiadis Avatar asked May 22 '26 02:05

Lazaros Morfiadis


1 Answers

Yes. You need to have a configuration file, like appFile.config unversioned. It should be a config file which is not compiled into the project.

like image 127
Lajos Arpad Avatar answered May 24 '26 18:05

Lajos Arpad



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!