tags:

views:

686

answers:

3

Hi all,

Is there any way to obfuscate Objective-C Code ?

Thanks

A: 

It's compiled to machine code; I'm not sure what point obfuscating it would have.

Edit: Of course, when I read "obfuscated C" in another answer, it all makes sense now. (I.e., not for "security", but "just because".) >_<

Wevah
Doesn't answer the question. C code is fairly obscure when compiled, stripped and optimized. Not so much Objective-C, though.
bbum
Sometimes, I wish I could un-accept my own answers.
Wevah
+1  A: 

objective c is a straight subset 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. I.e.

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

when you would normally have written:

-(void) sendObjectToMyServer:(BOOL)coverupAnimation;
Kenny Winker
A start. But still won't help much.
bbum
A: 

As the first step to obfuscate, use strip command to a executable file.

Not all information are stripped yet, but some name information is removed from the file.

After then, ... sorry I also don't know how to do it.

KatokichiSoft