I need compress library for following needs:
1) Packing directory in one file with extension of my choice ( .pack for example )
2) Work with content in this file (directory) without unpaking it
3) Mechanism for encrypting
I already know about zlib, but for me it is ugly documented and not written anywhere what features are support from it
Most archivers don’t require you to use a particular file extension. Regardless, one can still invoke
fileon a file to guess its content type.It’s possible to create a file list manually and prepend any archive file with that. Often,
.shinstallers for Linux contain a shell script in the beginning, followed by some magic line like__ARCHIVE_START__followed by a binary archive. Hence it is possible to read lines from a file until__ARCHIVE_START__line has been read. The rest of the file is an archive file.One easy way is to use different libraries for archiving and encrypting:
.tar..tarinto say.tar.xz..tar.xzwith file list followed by__ARCHIVE_START__line.