views:

113

answers:

4

Under VS2008, I'm working on a solution containing various DLL project. Is it possible to obfuscate the whole code?

A: 

You can obsfucate any available source, but not pre-compiled libraries.

Chris Kannon
-1 - this is incorrect. .NET obfuscators operate on compiled libraries and executables - they don't touch the source.
Erik Forbes
Thanks for the correction Erik!
Chris Kannon
+3  A: 

You could use DotFuscator.

Darin Dimitrov
A: 

If you really must, you can modify your build process to use ILDASM or Reflector to write out the assemblies as source, then obfuscate that as you would normally.

fatcat1111
+1  A: 

I use ILMerge to merge my assemblies into one, then run that single assembly through the obfuscator of choice. ILMerge has an option to change all types to Internal - I use that flag to increase the obfuscator's effectiveness. ILMerge works just fine on .NET 3.5 executables - I haven't had a chance to test it with the beta bits of .NET 4 yet, however.

All of this can be done transparently by adding a post-build command to your final executable.

The obfuscator I use, by the way, is the free Babel Obfuscator.

Erik Forbes