Developed and maintained by Nathan Moinvaziri.
|Name|Description| |:-|:-| |master|Modern rewrite that includes more advanced features, improvements in code maintainability and readability, and the reduction of duplicate code. Compatibility layer provided for older versions.| |dev|Latest development code| |1.2|Drop-in replacement for zlib's minizip that includes WinZip AES encryption, disk splitting, I/O buffering and some additional fixes.| |1.1|Original minizip as of zlib 1.2.11.|
Minizip was originally developed by Gilles Vollant in 1998. It was first included in the zlib distribution as an additional code contribution starting in zlib 1.1.2. Since that time, it has been continually improved upon and contributed to by many people. The original project can still be found in the zlib distribution that is maintained by Mark Adler.
My work with the minizip library started in 2006 when I fixed a few bugs I found and submitted them to Gilles Vollant. In 2010, I implemented WinZip AES encryption, disk splitting, and I/O buffering that were necessary for another project I was working on. Shortly after, I created this public repository so I could share my improvements with the community. In early 2017, I began the work to refactor and rewrite the library as version 2 because it had become difficult to maintain and code readability suffered over the years.
To generate project files for your platform:
cmake . -DMZ_BUILD_TEST=ON cmake --build .
|MZ_COMPAT||Enables compatibility layer||ON|
|MZ_ZLIB||Enables ZLIB compression||ON|
|MZ_BZIP2||Enables BZIP2 compression||ON|
|MZ_LZMA||Enables LZMA compression||ON|
|MZ_ZSTD||Enables ZSTD compression||ON|
|MZ_PKCRYPT||Enables PKWARE traditional encryption||ON|
|MZ_WZAES||Enables WinZIP AES encryption||ON|
|MZ_LIBCOMP||Enables Apple compression||OFF|
|MZ_OPENSSL||Enables OpenSSL encryption||OFF|
|MZ_LIBBSD||Builds with libbsd crypto random||ON|
|MZ_BRG||Enables Brian Gladman's library||OFF|
|MZ_SIGNING||Enables zip signing support||ON|
|MZ_COMPRESS_ONLY||Only support compression||OFF|
|MZ_DECOMPRESS_ONLY||Only support decompression||OFF|
|MZ_BUILD_TEST||Builds minizip test executable||OFF|
|MZ_BUILD_UNIT_TEST||Builds minizip unit test project||OFF|
|MZ_BUILD_FUZZ_TEST||Builds minizip fuzz executables||OFF|
|MZ_CODE_COVERAGE||Build with code coverage flags||OFF|
|MZ_PROJECT_SUFFIX||Project name suffix for packaging|
|MZ_FILE32_API||Builds using posix 32-bit file api||OFF|
|Project|License|CMake Option|Comments| |-|-|-|-| |aes|license|
MZ_BRG|Written by Brian Gladman. Compiled in when system crypto functions are unavailable.| bzip2|license|
MZ_BZIP2|Written by Julian Seward.| |liblzma|Public domain|
MZ_LZMA|Written by Igor Pavlov and Lasse Collin. Modifications were made to support the ZIP file format specification.| |sha|license|
MZ_BRG|Written by Brian Gladman. Compiled in when system crypto functions are unavailable.| |zlib|zlib|
MZ_ZLIB|Written by Mark Adler and Jean-loup Gailly. Not included in this repository. Or alternatively, zlib-ng by Hans Kristian Rosbach.| |zstd|BSD|
MZ_ZSTD|Written by Facebook. Not included in this repository.|
This project uses the zlib license.
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 as good without you.
Thanks to Gilles Vollant on which this work is originally based on.
The ZIP format was defined by Phil Katz of PKWARE.