How to protect to show the package contents of my app?

Discussion in 'Mac Programming' started by newformac, Jun 1, 2011.

  1. macrumors regular

    May 24, 2011
    Hi all,

    i want to protect to show the package contents.

    is there any method to this.

    of if its is not possible ,can i make is password protected.

    please help me for this.

    thanks in advance.
  2. macrumors Core


    Jul 24, 2006
    The Ivory Tower (I'm not coming down)
  3. Hansr, Jun 1, 2011
    Last edited: Jun 1, 2011

    macrumors 6502a

    Apr 1, 2007
    What do you need to hide? Might just binary encode the resource (maybe with some hashing etc) or bundle it into the main binary?
  4. macrumors G5


    Nov 25, 2005
    I can show the package contents of the Finder. Of iTunes. Of Microsoft Word. Of Adobe Reader. Of Xcode. Even of MacDefender. Why on earth would you want to hide the package contents of your app? Do you think anyone cares? Don't you have more important things to do, like making it actually work?
  5. macrumors member

    Oct 31, 2008
    New York
    Learner it's really no different then going to C:\program files\PROGRAM_NAME\

    and viewing all that jazz. Also opening and editing .dll files.

    The basic user doesn't do **** to that. The above basic might edit some files to change the UI or rename some things inside. Advance might be able to hack it.

    *If PSN can't stop intruders don't think you can either.
  6. holmesf, Jun 1, 2011
    Last edited: Jun 1, 2011

    macrumors 6502a

    Sep 30, 2001
    From the view of the OS your .app file is a directory like any other (fun exercise: try making a directory and then rename it to So protecting it would require giving the OS access to this directory without giving the user access -- impossible.

    If there is something in there that you don't want users accessing you're going to have to use a very robust security scheme. And even then it will probably be cracked anyway, and just to embarrass you for even trying to protect your app they'll probably try to crack it in less than an hour. (if a company like Adobe cannot manage to protect their assets, do you think you can? of course not).

    Not to sound meanhearted, but I've released software in the past and know that it's useless to try to do this sort of thing. Back in 2003 I released a game, and even though I was using what I thought was a clever scheme to validate serial numbers pirates reverse engineered it and used it to spit out every single valid serial number in a matter of a day. If someone wants to break your software bad enough they simply will.
  7. thread starter macrumors regular

    May 24, 2011

Share This Page