Version 2.7.2.
minizip is a zip manipulation library written in C that is supported on Windows, macOS, and Linux.
Maintained by Nathan Moinvaziri.
| Name | State | Version | Description | Travis CI |
|---|---|---|---|---|
| master | Active | 2.x | Modern refactoring of 1.2 branch that includes more advanced features, improvements in code maintainability and readability, and the reduction of duplicate code. Compatibility layer provided for older versions. | |
| dev | Active | 2.x | Latest development code | |
| 1.2 | Stale | 1.x | Drop-in replacement for zlib's minizip that includes WinZip AES encryption, disk splitting, I/O buffering and some additional fixes. | |
| 1.1 | Stale | 1.x | Original minizip as of zlib 1.2.11. |
Minizip was originally developed by Gilles Vollant and had been contributed to by many people. As part of the zlib distribution, Mark Adler has maintained the original minizip project.
In 2006, I began working with the minizip project and started submitting bugs I found in the library to Gilles Vollant via e-mail. In 2010, I implemented some additional features like disk splitting, I/O buffering, and WinZip AES encryption. My continued work on the project necessitated setting up a public repository so I could share these and other improvements with the rest of the world. I have been maintaining and actively developing this fork of the library ever since. In 2017, I refactored and rewrote most of the code as version 2 because it had become difficult to maintain and code readability had suffered over the years.
To generate project files for your platform:
cmake . -DBUILD_TEST=ON cmake --build .
| Name | Description | Default Value |
|---|---|---|
| USE_COMPAT | Enables compatibility layer | ON |
| USE_ZLIB | Enables ZLIB compression | ON |
| USE_BZIP2 | Enables BZIP2 compression | ON |
| USE_LZMA | Enables LZMA compression | ON |
| USE_PKCRYPT | Enables PKWARE traditional encryption | ON |
| USE_AES | Enables WinZIP AES encryption | ON |
| USE_LIBCOMP | Enables Apple compression | OFF |
| USE_OPENSSL | Enables OpenSSL encryption | OFF |
| USE_BRG | Enables Brian Gladman's library | OFF |
| COMPRESS_ONLY | Only support compression | OFF |
| DECOMPRESS_ONLY | Only support decompression | OFF |
| BUILD_TEST | Builds minizip test executable | OFF |
| File(s) | Description | Required |
|---|---|---|
| minizip.c | Sample application | No |
| mz_compat.* | Minizip 1.0 compatibility layer | No |
| mz.h | Error codes and flags | Yes |
| mz_os* | Platform specific file/utility functions | Likely |
| mz_crypt* | Configuration specific crypto/hashing functions | Encryption, Signing |
| mz_strm.* | Stream interface | Yes |
| mz_strm_buf.* | Buffered stream | No |
| mz_strm_bzip.* | BZIP2 stream using libbzip2 | No |
| mz_strm_crc32.* | CRC32 stream | Yes |
| mz_strm_libcomp.* | Apple compression stream | No |
| mz_strm_lzma.* | LZMA stream using liblzma | zlib or liblzma |
| mz_strm_mem.* | Memory stream | Yes |
| mz_strm_split.* | Disk splitting stream | No |
| mz_strm_pkcrypt.* | PKWARE traditional encryption stream | No |
| mz_strm_os* | Platform specific file stream | Yes |
| mz_strm_wzaes.* | WinZIP AES stream | No |
| mz_strm_zlib.* | Deflate stream using zlib | zlib or liblzma |
| mz_zip.* | Zip format | Yes |
| mz_zip_rw.* | Zip reader/writer | No |
Thanks to Gilles Vollant on which this work is originally based on.
Thanks go out to all the people who have taken the time to contribute code reviews, testing and/or patches. This project would not have been nearly as good without you.
The ZIP format was defined by Phil Katz of PKWARE.