is a robust Delphi library tailored for ZIP archive manipulation in the Delphi development environment. Comprising two primary units, YuZip.pas, and DIZipWriter.pas, it offers comprehensive functionality for creating, opening, extracting, and modifying ZIP archives. YuZip.pas, a Delphi port of the widely used libzip C library, provides complete ZIP archive manipulation capabilities, while DIZipWriter.pas contains the optimized TDIZipWriter class, specifically designed for creating new ZIP archives with efficient compression, mainly for handling large files. The library supports multiple compression algorithms, including Deflate, Bzip2, LZMA, PPMd (available in TDIZipWriter only), XZ, and zStandard. It also features various encryption algorithms, such as the robust WinZip AES with key sizes ranging from 128 to 256 bits and the original PKWARE encryption (now considered weak and not recommended).
Key functionalities include creating self-extracting archives (SFX), handling ZIP64 format for files larger than 4 GB, managing Unicode filenames with automatic code page conversion, and adding comments to individual files and the entire archive. YuZip's code is statically linked, eliminating the need for external DLLs. Widely utilized, the library has found its place in various commercial and open-source products, including applications like Adobe, Chrome, and PHP, and even in the automotive industry, employed in Mercedes cars. The library's versatility and optimization make it a valuable tool for developers working with ZIP archives in Delphi applications.