Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created class library using c#. And i got dll from Build. If i disassemble this dll using reflector the it show the original source code (C# code).

I want to protect this. Can you please suggest any good idea to protect?
Posted
Comments
Sergey Alexandrovich Kryukov 9-Mar-12 0:25am    
Please see the answer about obfuscation. You should understand that obfuscation does not prevent reverse engineering, it just makes it harder to understand what the code is doing. There are much more delicate and powerful products used to prevent reverse engineering, but nothing can fully guarantee such protection. All products are saw so far were proprietary and expensive. Are you sure you want to go for it? Are you sure your code is so valuable that anyone would like to reverse-engineer it?
--SA
Lakamraju Raghuram 9-Mar-12 0:46am    
Yes. Any thing is breakable provided time and resources. So rather than wasting money on obfuscation, we can think of coding the core logic in C++ libs and then wrap them in a C++/CLI dll for consumption in C#. In this way you can secure your core at least

Its called Obfuscation[^]. There are plenty of answers for this kind of question already. See the following

csharp Obfuscate[^]
.net code obfuscation[^]

You can also refer to these URLs from CodeProject[^] or Google[^] if you don't find the 2 solutions enough.
 
Share this answer
 
All .Net assemblies need obfuscation so that others cannot figure out your code. Take a look at 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