Protecting C# Windows Application from .Net Reflector and creating setup file

Faruk Durak 6 Reputation points
2022-01-29T12:36:54.557+00:00

People are installing my app on their computers. I should hide the table structure and connection string information for security.

I do this with ConfuserEx: https://www.codeproject.com/Articles/1139773/Protect-Your-Source-Code-from-Decompiling-or-Rever

When I Publish the project, I produce an exe, when I encrypt this exe with ConfuserEx, a new exe is compiled and my files after Publish do not work with this new exe.

When I create a Setup project with Visual Studio I have only one Setup.exe file.

How can I hide the codes and connection string with ConfuserEx and make a setup file?

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,873 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ken Tucker 5,851 Reputation points
    2022-01-30T14:38:08.793+00:00

    If you want to keep your database safe you should create a web service for getting and saving data from the database. Have your windows application call the web service.

    I would look at using dotfuscator if you want to protect your source code.

    0 comments No comments