For more detail this asset from the Unity Asset Store: Click Here
This is a paid asset, but now you can download CodeGuard for FREE, Please keep in mind this package is provided only for learning purposes or to be able to test before buying the product, NOT FOR COMMERCIAL PURPOSES.
CodeGuard v1.3.6
“If possible, please buy the package to support the developer”
CodeGuard is a Unity obfuscation editor extension.
As Unity uses Mono, it is easy to read and manipulate the code of Unity projects via freely available tools.
Obfsucators are programs used to hinder this, but due to the nature of Unity, normal .NET obfuscators cannot obfsucate Unity projects without breaking them.
CodeGuard is an obfuscator and code protector written specifically for Unity projects.
Works in Unity & Unity Pro, Windows and Mac for obfuscation and code protection of Windows, Mac, Linux, Web Player, Android and iOS/iPhone builds. BlackBerry and Windows Phone support is under development.