Compress and encrypt Zip archive
To compress files into a Zip archive you need to create and use an instance of TElZipWriter class.
When the archive is opened you can add or remove files using Add, AddDirContents, and Remove methods. You may use either synchronous or asynchronous compression. In the first case, once the archive has been populated, simply call Compress.
For asynchronous compression, the following steps should be performed:
To specify archive compression algorithm and compression level, use CompressionAlgorithm and CompressionLevel properties, correspondingly. You may set up encryption parameters of individual archive entries via the corresponding properties of TElZipArchiveDirectoryEntry.