simple text compression in Cocoa
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