Create & Modify Password Protected ZIP Archives via C Library
Open Source Free C Library to Generate, Modify, Remove, or Extract ZIP Archives, Add/Remove Files inside your own apps.
Minizip is an open source C library that facilitates software programmers to work with zip archives inside their own C applications. The Minizip library is very stable and is one of the better and easier to use. It always used Deflate compression when adding files to the archive. Minizip is a pure C library that can be used on Windows, macOS, and Linux with ease. The library also supports PKWARE and WinZIP AES encryption and decryption.
The Minizip API provides complete support for numerous advanced compression and extraction related features for ZIP archives, such as creating and extracting zip archives, add or remove entries from zip archives, read and write zip archives from memory, password protection, buffered streaming support, splitting zip archives into multiple files, Unicode via through UTF-8 encoding, character encoding support, Follow and store symbolic links and many more.
At A Glance
An overview of Minizip features.
- Create ZIP-archives
- Access ZIP-archives
- Edit ZIP-archives
- Unzipping ZIP files
- Extract ZIP archive
- Append File
- Extract specific file
- Add file to archive
- Add directory
- Delete file
- Close archive
Minizip supports popular compression file formats listed below.
- ZIP, ZIP64
Minizip only requires C run-time
Getting Started with Minizip
CMake is highly recommended to build the Minizip library. You can get it from the cmake website easily.
A typical installation code is given below
Build Minizip Library from CMake
cmake . -DMZ_BUILD_TEST=ON cmake --build
You can also install Minizip manually; download the latest release files directly from GitHub repository.
Create New ZIP Archive via C Library
The Free Minizip library provides functionality for generating a new ZIP archive inside C applications. The compression library also supports editing an existing ZIP archive by inserting or deleting files inside it. You can easily display the list of all available files inside the ZIP archive. You can also open, modify, close, or delete a directory or file in the ZIP archive with just a couple of simple C commands.
Password Protected Archives Handling
The open source Minizip library provides the capability to handle password-protected ZIP archives with ease. It provides set of features that allows software developers to protect their archives by setting a password, allowing reading all or some entries in the archive, alter the password for the archive, remove archive password, Set encryption & decryption methods and much more.
Add or Remove Files from ZIP archive
The open source Minizip library has included support for inserting files into a ZIP archive with just a couple of lines of code. The library also facilitates programmer to replace or delete files in an existing ZIP archive with ease. The available methods are very user friendly and you require just a couple of lines of code to achieve this task. The library also supports Unicode filename through UTF-8 encoding.
Extract Files from ZIP Archives to Disk
The open source Minizip library enables computer programmers to read and extract the contents of an archive with ease. You can easily extract files and folders into a place of your choice on the disk. It also gives you the ability to extract complete data of an archive as well as extracting some particular files. The library also provides the ability to generate and verify CMS signature for each entry.