Answer the question
In order to leave comments, you need to log in
How to encrypt (obfuscator) code in c#?
Hello, I am writing a little in c# WPF, there is a complete binding of the program to the server, i.e. the program will not perform the main actions without a response from the server.
How is it possible to make sure that the source code is not visible? How to make obfuscation so that an ordinary user does not remove it in 2 clicks and, accordingly, so that this does not cause problems with the antivirus?
All available obfuscators that I found are easily removed in 2 clicks. I don't need any other protection, I just need code that is not readable at all, how can I do this?
Answer the question
In order to leave comments, you need to log in
Good afternoon!
As an option - write your own obfuscator (in all seriousness). For example, strings can be encoded in Unicode (like \u0024), randomly add a bunch of comments, semicolons, rename all variables to variables with crazy names using Guid.NewGuid(). For example:
was:
became:
In addition, you can remove all #regions and #endregions, make sure that all the contents of *.cs files are in 1 line (only this does not work if you have preprocessor directives: #if, #endif, etc. - these directives must be on a new line), remove all normal comments (which the developers left), add some unnecessary code in the form of loops.
Good luck!
Then extra expenses appear, and such developers do not like this)
yck1509.github.io/ConfuserEx - try it. De4dota doesn't seem to be afraid.
And try this one - https://obfuscar.codeplex.com/
If you can remove it in two clicks, then either native, or as already mentioned above - saas
just not readable code at all is needed, how to do it?NO WAY.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question