tar is neither a compression nor encryption tool, it just packages files into a bundle or archive. Still, you're saying the same thing I'm saying: compress first, then encrypt.$ ls -al elements.list
-rw-r--r-- 1 pileon staff 33500188 Mar 14 2008 elements.list$ time openssl enc -aes-256-cbc -salt -in elements.list | gzip > elements.list.enc.gz
enter aes-256-cbc encryption password:
Verifying - enter aes-256-cbc encryption password:
real 0m4.971s
user 0m3.175s
sys 0m0.238s$ ls -al elements.list.enc.gz
-rw-r--r-- 1 pileon staff 33505336 Mar 4 17:30 elements.list.enc.gz$ time gzip -c elements.list | openssl enc -aes-256-cbc -salt -out elements.list.gz.enc
enter aes-256-cbc encryption password:
Verifying - enter aes-256-cbc encryption password:
real 0m7.995s
user 0m2.814s
sys 0m0.098s$ ls -al elements.list.gz.enc
-rw-r--r-- 1 pileon staff 6954496 Mar 4 17:32 elements.list.gz.enctar does not do any compression:$ ls -al elements.list mapoftheuniverse.pdf
-rw-r--r-- 1 pileon staff 33500188 Mar 14 2008 elements.list
-rw-r--r-- 1 pileon staff 3807909 Oct 22 2007 mapoftheuniverse.pdftar them up:$ tar cvf test.tar elements.list mapoftheuniverse.pdf
elements.list
mapoftheuniverse.pdf$ ls -al test.tar
-rw-r--r-- 1 alexreynolds staff 37314560 Mar 4 18:01 test.tartar archive actually uses another 6463 bytes to contain the two files. There's no compression going on here.bz2-, zip- or gzip-compressed components with a catalog. We do this for per-chromosome genomic data, but it's not something we have publicly available, and I don't know of any similar tar-based equivalent that is out there in a public domain (though that doesn't mean it doesn't exist).
Unless you store the HTML in memory, you'll need to work within the application's sandbox. Apple recommends you use the application's Documents folder. If you use another folder inside the sandbox for user data, I'm uncertain if Apple would reject your application, but they like standard behaviors so that's a possibility.
posted by Blazecock Pileon at 2:47 PM on March 4, 2009