Dotfuscator: protect your .Net assembly

Posted: May 20, 2013 in .Net/C#, Windows
Tags: ,

.Net assembly can be easily deassembled using some free tools, such as ildasm.

Dotfuscator is a free tool included in Visual Studio and it provides a way to make your code more difficult to be read.

Below is my obfuscated assembly loaded from ildasm. You can see all the class name are renamed to some non-sense name. dot

To use Dotfuscator is quite straightforward.

  1. Select the input assemblies
  2. Exclude those resources, namespace and types that don’t need to be renamed. This is very important especially when you are using third party dlls.
  3. Set the destination directory
  4. Build

When i used Dotfuscator for the first time, i kept receiving this error: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure “XXXXX.Properties.Resources.resources” was correctly embedded or linked into assembly “XXXXX” at compile time, or that all the satellite assemblies required are loadable and fully signed.

To fix this error, just make sure you have checked the Resources to be excluded in the step 2.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s