views:

22

answers:

0

I have a large 'book' that I need to compress, encrypt and also make searchable on the iphone. The app has some requirements that won't allow a simple PDF or EPUB.

I have the book in plain text on my computer, and I am parsing/converting it to XML. I want to compress the file to reduce app purchase download time, and encrypt the app just so people can't get to the human-readable content super easily without purchasing the content.

The uncompressed text is 2.3MB.

What compression & encryption methods would you recommend that would allow me to efficiently read and search? How often should I decompress/decrypt? How much text content can I realistically store in iPhone memory at one time?

Thanks for your guidance