My Software Notes

Useful things I discover

The problem with Dotfuscator CE

with one comment

Dotfuscator CE works okay for simple code but add something more complex, like for example your own generic classes, and it fails.

I tried Dotfuscator CE on a solution consisting of six assemblies.  One of the main assemblies used a generic base class for the business objects.  Dotfuscator ran with no errors reported, but when I tried to run the code I immediately got exceptions.

I traced them down to my custom generic classes.  Because the CE version of Dotfuscator allows you no fine tuning then you are left with an “all or nothing” proposition.  If the offending assembly won’t run when obfuscated then your only choice is to not obfuscate it.  This was not acceptable for my project, so I had to find an alternative.

I settled on Phoenix Protector, a freeware application that lets you fine tune your obfuscation and has a command line that actually works.  It’s not going to be my long-term solution, but it is sufficient for the moment.

Advertisements

Written by gsdwriter

March 3, 2009 at 8:45 pm

Posted in Tools

Tagged with , ,

One Response

Subscribe to comments with RSS.

  1. Did you look at an alternative obfuscator like Crypto Obfuscator (http://www.ssware.com/cryptoobfuscator/obfuscator-net.htm) ? It has full support for generics, multiple asemblies, command line support, MSBuild integration and more.

    LogicNP

    September 3, 2011 at 12:25 am


Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: