At some point in your product development, you would probably meet the problem of possible DataMining and ReverseEngineering. It is even worth, if your project uses online features, hackers can stole your server endpoints, and start bringing it down, or break the rules of your game, or even try to steal some of user data!
Then, it is time to think about such thing as obfuscation!
According to Wikipedia, obfuscation — is the deliberate act of creating source or machine code that is difficult for humans to understand. In short words it is the way to hide your source code.
If we try to use some dll inspector tool such as Reflector or so, on your unobfuscated standalone build — You would be surprised, all your source code would be 100% visible. Somebody can make a copy of your app fairly easy!
The easies way to save your source code comes from Unity AssetsStore. In our blog — we would be showing you some of assets that we always use. There are definitely some of them in the store, that worth your attention, and even Unity includes some of them in their Plus and Pro packages, as they are worth it.
So, today we want to show you an asset with simple name Obfuscator.
We do use that asset in every our project, as we need are doing only Pro-level development.
Install an asset in your project, and you are almost ready to go!:) No extra steps needed, just all like we love. Find settings file ObfuscatorOptions in Assets/Editor/Beebyte/Obfuscator and make sure it has following options turned on:
So now lets make a build and try to datamine that with .NET Reflector.
Below is comparison screenshot of source code, inspected with and without Obfuscator.
Now you can sleep calm:)