1.18. Make Your Assembly More Difficult to Decompile

Problem

You want to make sure that people cannot decompile your .NET assemblies.

Solution

The only way to ensure that your assembly cannot be decompiled is by not making it directly accessible. This can be accomplished using a server-based solution. If you must distribute assemblies, you have no way to stop people from decompiling them. The best you can do is use obfuscation and components compiled to native code to make your assemblies more difficult to decompile.

How It Works

Because .NET assemblies consist of a standardized, platform-independent set of instruction codes and metadata that describes the types contained in the assembly, they are relatively easy to decompile. This allows decompilers ...

Get Visual Basic 2008 Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.