$zip() only supports zip files, with or without AES, and no other formats.

I did try libarchive, unfortunately I just could not make it work. Everything from compilation issues to not being able to figure out how to use the API to zip files with AES. I eventually gave up :-] I may look at it again in future.