Compressing and Encrypting

How can you compress and encrypt any multiple files into one file that is your own format?
closed account (z05DSL3A)
Design and implementation.
anything i can read on!.
closed account (z05DSL3A)
I would start by reading about something like Zip format.
http://www.pkware.com/support/zip-app-note
Any algorithms i can make notes off -.-
Use an existing algorithm implementation, such as the LZMA algorithm:
http://www.7-zip.org/sdk.html

Then just store the compressed data along with the uncompressed size and any other information you want to keep (name, modification date, hash...) into a file.
Thanks very much :)
Topic archived. No new replies allowed.