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

Faruk Durak 6 Reputation points

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:

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,818 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ken Tucker 5,846 Reputation points

    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