需要阅读中文文档的可以点击跳转到这 CodeSecurity
中文文档
A plugin for supporting object c code obfuscation in Xcode 8+
- encrypt obfuscation plain text
- encrypt obfuscation class name, method name
- encrypt obfuscation property name
- decrypt encrypted plain text
- Not recommend for obfuscation in header file
- Every time you obfuscate a symbol, unless you know the theory about obfuscation, or you'd better compile and run the code. Make sure no error happend
- You can obfuscate symbol in header file, but make sure the code which imports the header file will not be affected
- Don't obfuscate symbols in subclass which was defined in super class, obfuscate it in super class
- If you obfuscate plain text, I recommend you to use dl_getRealText method in mixplaintext, to help decrypt in running time
- Obfuscate class name in header file.
It requires Xcode
8.0+
-
On OS X 10.11 El Capitan, run the following command and restart your Mac:
sudo /usr/libexec/xpccachectl
-
Open
CodeSecurity.xcodeproj
-
Enable target signing for both the Application and the Source Code Extension using your own developer ID
-
Product > Archive
-
Right click archive > Show in Finder
-
Right click archive > Show Package Contents
-
Open Products, Applications
-
Drag
CodeSecurity.app
to your Applications folder -
Run
CodeSecurity.app
and exit again. -
Go to System Preferences -> Extensions -> Xcode Source Editor and enable the extension
-
The menu-item should now be available from Xcode's Editor menu.
- Support Swift code
- Obfuscation macro should be putted after all the import header files
Author: @粉碎音箱的音乐(weibo)
Blog: Blog
Please star if you think it is helpful to you. Thank you. 😄