Objective-C Code Obfuscation

前端 未结 2 998
我寻月下人不归
我寻月下人不归 2020-12-05 06:06

Is there any way to obfuscate Objective-C Code ?

Thanks

2条回答
  •  情深已故
    2020-12-05 06:22

    Objective c is a straight superset of C, therefore all normal C obfuscation techniques work. If you want to work with cocoa, however, you're going to have a bit of an obstacle because the method names are fairly self-documenting.

    For your own methods, you just have to self-document the methods incorrectly. e.g.

    -(void) doSomethingInnocent:(BOOL)animated withObject:passwords;
    

    when you would normally have written:

    -(void) sendObjectToMyServer:(BOOL)coverupAnimation;
    

提交回复
热议问题