Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to protect my code from decompiling.
Any software & tutorial?
Plz help
Regards.
Posted

The short answer is "You can't."

The longer answer is:

You can make it difficult, but even then, not exactly very. Google for ".net Obfuscator" and you will find a wealth of info.

(Even with native code, you can't fully protect it from a determined de-coder who can disassemble your binary to ASM or C)
 
Share this answer
 
Comments
DaveyM69 10-Jul-10 5:05am    
Reason for my vote of 5
Good answer
As Griff said, you can't. You can spend a small fortune on software to make it more difficult but it's never 100% effective.

If you have some super-duper, fancy-wancy code sections that you really need to protect, recode those parts as functions in a C++ (not CLR) dll and call those from your .NET program to use it. That's about the best you can do to make it harder but still not impossible.
 
Share this answer
 
Use an obfuscator to protect against decompilers. See Crypto Obfuscator.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900