• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Hiding method names in binary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hiding method names in binary


  • Subject: Re: Hiding method names in binary
  • From: "Sean McBride" <email@hidden>
  • Date: Wed, 23 Nov 2005 15:26:24 -0500
  • Organization: Rogue Research

On 2005-11-23 15:21, Clark Cox said:

>Yes, it's true, as the Objective-C runtime needs to know the names of
>methods and classes in order to function properly. Your only real
>option for hiding the method names is to obfuscate them. For instance,
>if you have a method that checks the validity of a serial number, call
>it something completely unrelated. So, instead of:
>
>-(BOOL)isSerialNumberValid:(NSString*)number
>
>call it:
>
>-(BOOL)shouldHaltThread:(id)number

Or:

#define     isSerialNumberValid     shouldHaltThread
-(BOOL)isSerialNumberValid:(NSString*)number

So that you can read your code, at least. :)

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Hiding method names in binary (From: Trygve Inda <email@hidden>)
 >Re: Hiding method names in binary (From: Clark Cox <email@hidden>)

  • Prev by Date: Re: Hiding method names in binary
  • Next by Date: Re: Basic runtime function usage - objc_getClass
  • Previous by thread: Re: Hiding method names in binary
  • Next by thread: Reverse value transformation with different class?
  • Index(es):
    • Date
    • Thread