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
2010-01-19 19:11:11
-1 - this is incorrect. .NET obfuscators operate on compiled libraries and executables - they don't touch the source.
Erik Forbes
2010-01-19 19:15:24
Thanks for the correction Erik!
Chris Kannon
2010-01-19 19:21:42
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
2010-01-19 19:14:05
+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
2010-01-19 19:14:44