• 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
simple text compression in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

simple text compression in Cocoa


  • Subject: simple text compression in Cocoa
  • From: "Wayne Shao" <email@hidden>
  • Date: Sun, 8 Jun 2008 00:26:24 -0700

Hi,

I have a chunk of plain text (about 2K bytes) in memory, most of which is
static. Since this data reveals main logic of my algorithm,
I want to make it inconvenient to read this data from a debugger. So I try
to find an easy way to compress it or simply obfuscate it.

Note that, it is fine if anyone who knows the mechanism to read this data.
Total security is not the goal.
Right now, I just use XOR with a short key. What is a better way?
(compression is preferred).
 I want to avoid dependency on other 3rd-party lib or any heavy framework
APIs.

- data is ASCII
- data is 2K
- about 1.5K of the data is static text.
- ok with ObjC or C/C++

Thanks,
--
Wayne Shao
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: simple text compression in Cocoa
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Re: Cocoa n00b frustrations
  • Next by Date: Re: Garbage collector vs variable lifetime
  • Previous by thread: Re: NSPopupButton Item to Create New Object
  • Next by thread: Re: simple text compression in Cocoa
  • Index(es):
    • Date
    • Thread