Jeremy Tammik mentions obfuscation for Revit plugins in his post Obfuscation Tools. I would like to mention two free obfusctators I have used:
Both of these can be hooked up to your build script so that they obfuscate automatically. Please read their documentation on how to do this.
I liked Eazfuscator a lot and used it for all dependant assemblies of my project, but sadly, it chokes on references to the assembly RevitAPI. So for developing Autodesk Revit Plugins, it will not work.
Babel .NET can obfuscate assemblies that reference RevitAPI.dll. I tied it into my build process in Visual Studio 2010 as a Post-build event command line:
select your project in the Solution Explorer
right-click and choose Properties from the context menu
in the tab Build Events, enter the following in the field Post-build event command line:
if /I "$(ConfigurationName)" NEQ "Debug" "C:\Program Files\Babel\Babel.exe" "$(TargetPath)" --stringencrypt --output "$(TargetPath)"
This assumes, of course, that you have installed Babel .NET to C:\Program Files\Babel. Also note, that the build configuration "Debug" is excluded from obfuscation.
Excellent - great tip!
ReplyDeleteHi Daren,
ReplyDeleteFirst of all, thanks for all your work, it's very useful.
Then, I don't know if in this last 7 year you have find another solution for ofuscation. It seems that the Babel option has change to a payment solution:
https://forums.autodesk.com/t5/revit-api-forum/best-obfuscation-option/m-p/7129369#M23223
Thanks for your time.
Cheers.