Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Agasper/asert-unity-protect-obfus…
Browse files Browse the repository at this point in the history
…cator
  • Loading branch information
Agasper committed Nov 27, 2017
2 parents 0663e6d + 6cd65e1 commit 1d00b62
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
Unity build obfuscator
=====
License: *GNU GPL v3*

Features:
* Protecting/encrypting int, string constants
* Renaming everything it can rename without affecting functionality
* Adding checksum library verification

### How to use

1. You need to locate two libraries *Assembly-CSharp.dll* and *UnityEngine.CoreModule.dll* within your build.
2. Run

```
mono ./AsertNet.exe --filename="Assembly-CSharp.dll" \
--unitylib="UnityEngine.CoreModule.dll" \
--hideintegers --encryptstrings \
--antitamper --renameall
```

3. Thats all

### For Android builds

First you need to unpack apk file with https://ibotpeaches.github.io/Apktool/
Then obfuscate libraries and pack it back

P.S. Don't forget to sign your APK again with a keystore

```
./apktool d apk.apk
mono ./AsertNet.exe --filename="./apk/assets/bin/Data/Managed/Assembly-CSharp.dll" \
--unitylib="./apk/assets/bin/Data/Managed/UnityEngine.CoreModule.dll" \
--hideintegers --encryptstrings \
--antitamper --renameall
./apktool-mac b apk -o result.apk
jarsigner -keystore ./key.keystore -verbose result.apk "key name"
```

0 comments on commit 1d00b62

Please sign in to comment.