How to obfuscate my scripts

Dear Friends:

I need to obfuscate the code in my web builds and I need some help. I am going to use Reactor: Store - Eziriz unless there’s something better value out there, but that’s fine I think. I also want to use Reflector: .NET Decompiler: Decompile Any .NET Code | .NET Reflector to view the code to see if it’s appropriately obfuscated, but I need help with how to do it, step by step.

I am wondering if someone could explain it to me step by step. If this is involved or difficult, I am willing to pay for the help. I’m just not up to the task and have already burned through 2 days getting this far and I have to get back to work and deliver a working build.

What I have so far is from a post by Nexic at the bottom of this page: http://forum.unity3d.com/threads/17117-Hack-resistance/page7 which says:

so I drag and drop to the top or bottom window in Reactor and click “Protect” and it makes some new files… and then what?
And how to I view the before and after in Reflector??

That’s my bind. Any help is appreciated and instructions that work are worth money to me if good karma isn’t enough!

Thanks,
Vimalakirti

You can view the before and after in reflector by clicking File->Open. Browse to your DLL.

Once it shows up in the list, right click it and hit “Disassemble.”

Then use the treeview to see all your obfuscation at work. Nothing should really make sense. Try to right click and disassemble some classes as well.

andorov,

That got me going with Reflector. Thank you!

Now for Reactor, the obfuscator, I need to obfuscate the assembly of my scripts: Assembly-CSharp.dll, which relies on UnityEngine.dll, but I don’t want to obfuscate the classes in UnityEngine. How do I set up Reactor (or another program) so that it sees UnityEngine.dll (allowing using UnityEngine;) and obfuscates only my scripts??

Thanks in advance.

I am willing to pay to learn how to use this or another obfuscator if anyone knows how.

Thanks.

maybe take a look at this one http://forum.unity3d.com/threads/85824-UMPatcher-Safely-Protect-the-Managed-DLLs-C-code-in-Unity3d-application

cheers

That is not a solution for web builds.

Just write code like my Jr. programmers. Only God can read the crap they crank out some times!

Create .NET assemblies from it, obfuscate them and then use them in unity … but be aware that you will suffer from it too in the editor in case you let it toy with the function and class names and the public exposed ones.