Rebex.Zip
8.0.9797
Prefix Reserved
dotnet add package Rebex.Zip --version 8.0.9797
NuGet\Install-Package Rebex.Zip -Version 8.0.9797
<PackageReference Include="Rebex.Zip" Version="8.0.9797" />
<PackageVersion Include="Rebex.Zip" Version="8.0.9797" />
<PackageReference Include="Rebex.Zip" />
paket add Rebex.Zip --version 8.0.9797
#r "nuget: Rebex.Zip, 8.0.9797"
#:package Rebex.Zip@8.0.9797
#addin nuget:?package=Rebex.Zip&version=8.0.9797
#tool nuget:?package=Rebex.Zip&version=8.0.9797
Rebex ZIP - The C# ZIP compression library for .NET
Rebex ZIP is a ZIP, UnZIP, DEFLATE, zlib and GZIP compression library for .NET. It makes it easy to create, modify, encrypt, or extract ZIP archives. Compatible with WinZip, PKZIP, Info-ZIP, and other tools.
15+ years of active development. Rebex ZIP has been continuously developed and maintained since 2010, with regular updates and new features.
Key features
- Single file operations - add, extract, delete, rename, move files; compress from and extract to memory streams
- Multiple files operations - batch add/extract with wildcards, recursive directory transfers
- Directory operations - create, rename, delete directories within archives
- Password protection - WinZip-compatible AES-128/192/256 encryption and legacy ZIP 2.0 encryption
- GZIP - compress and decompress GZIP archives, stream-based API
- Advanced ZIP features - multi-core compression, ZIP64 large file support (4+ GB), integrity checking, compression streams (DEFLATE, zlib, GZIP)
- Async/await API - Task-based asynchronous API support
- FIPS 140-3 compliant mode
Getting started
Create a ZIP archive
using (var zip = new ZipArchive(@"C:\MyData\archive.zip", ArchiveOpenMode.Create))
{
// add a file
zip.AddFile(@"C:\MyData\file1.txt");
// add all files from a directory
zip.Add(@"C:\MyData\Web\*");
}
Extract a ZIP archive
using (var zip = new ZipArchive(@"C:\MyData\archive.zip"))
{
// extract a single file
zip.ExtractFile("file1.txt", @"C:\MyData\Out\extracted.txt");
// extract all files
zip.ExtractAll(@"C:\MyData\Out", ActionOnExistingFiles.OverwriteAll);
}
Add and extract from memory
// add a file from stream
var data = new MemoryStream(Encoding.UTF8.GetBytes("Some text"));
zip.AddFile(data, "file1.txt");
// extract a file into memory
var output = new MemoryStream();
zip.ExtractFile("file1.txt", output);
Password-protected archive
// set password and encryption algorithm
zip.Password = "SecretPassword";
zip.EncryptionAlgorithm = EncryptionAlgorithm.Aes256;
// add files (they will be encrypted)
zip.Add(@"C:\MyData\private\*.*");
One-line static methods
// add a file to a ZIP archive (creates the archive if needed)
ZipArchive.Add(@"C:\MyData\archive.zip", @"C:\MyData\file1.txt", "/");
// extract all files from a ZIP archive
ZipArchive.ExtractAll(@"C:\MyData\archive.zip", @"C:\MyData\Out");
// encrypt an existing archive
ZipArchive.Encrypt(
@"C:\MyData\archive.zip",
@"C:\MyData\encrypted.zip",
"SecretPassword",
EncryptionAlgorithm.Aes256);
Multi-core compression
// specify preferred number of compressor threads
zip.Options.CompressorCount = 4;
GZIP compression
var gzip = new Rebex.IO.Compression.Gzip();
// compress a file
gzip.Compress(@"C:\MyData\file.txt", TraversalMode.MatchFilesShallow, @"C:\MyData\file.txt.gz");
// decompress a file
gzip.Decompress(@"C:\MyData\file.txt.gz", @"C:\MyData");
Check archive integrity
var result = ZipArchive.CheckIntegrity(@"C:\MyData\archive.zip");
if (result.Success)
Console.WriteLine("OK - The file structure is valid.");
else
Console.WriteLine("{0} - {1}", result.Status, result.ToString());
Supported platforms
- .NET 10 on Windows, Linux, macOS, Android, iOS/tvOS
- .NET 9 on Windows, Linux, macOS, Android, iOS/tvOS
- .NET 8 on Windows, Linux, macOS, Android, iOS/tvOS
- .NET 7 on Windows, Linux, macOS, Android, iOS/tvOS
- .NET 6 on Windows, Linux, macOS
- .NET 5 on Windows, Linux, macOS
- .NET Framework 4.0, 4.5.x, 4.6.x, 4.7.x, 4.8.x
- .NET Framework 3.5 SP1
- .NET Core 3.1 on Windows, Linux, macOS
- Xamarin.Android (10.1 and higher; via .NET Standard 2.1)
- Xamarin.iOS (13.10 and higher; via .NET Standard 2.1)
- Mono 6.0 or higher on Linux and macOS
Supported architectures: x86, x64, AMD64.
Licensing
This is a paid commercial product with a free 30-day trial.
- Trial mode: Start your free 30-day trial by generating your trial key
- Licensed mode: Buy Rebex ZIP and get your full license key
When the full license key is provided, NuGet.org repository can be used to retrieve versions of Rebex components covered by your support contract.
Support
Talk to real people. No scripted or AI responses. Support is provided directly by the engineers who design and build the library.
Email us at support@rebex.net or visit rebex.net/support.
Documentation
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net35 is compatible. net40 is compatible. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 is compatible. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETCoreApp 3.1
- Rebex.Common (= 8.0.9797)
-
.NETFramework 3.5
- Rebex.Common (= 8.0.9797)
-
.NETFramework 4.0
- Rebex.Common (= 8.0.9797)
-
.NETFramework 4.6
- Rebex.Common (= 8.0.9797)
-
.NETStandard 2.0
- Rebex.Common (= 8.0.9797)
-
.NETStandard 2.1
- Rebex.Common (= 8.0.9797)
-
net10.0
- Rebex.Common (= 8.0.9797)
-
net5.0
- Rebex.Common (= 8.0.9797)
-
net6.0
- Rebex.Common (= 8.0.9797)
-
net7.0
- Rebex.Common (= 8.0.9797)
-
net8.0
- Rebex.Common (= 8.0.9797)
-
net9.0
- Rebex.Common (= 8.0.9797)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Rebex.Zip:
| Package | Downloads |
|---|---|
|
Rebex.TotalPack
Rebex Total Pack is a metapackage that includes all Rebex libraries such as Rebex SFTP, Rebex FTP, Rebex SSH Shell, and more. See https://www.rebex.net/total-pack/ for a complete list. This is a paid commercial product with a free 30-day trial: - Trial mode: Start your free 30-day trial by generating your trial key at https://rebex.net/support/trial-key.aspx - Licensed mode: Purchase the product at https://rebex.net/shop/ and get your full license key at https://rebex.net/protected/nuget When the full license key is provided, NuGet.org repository can be used to retrieve versions of Rebex components covered by your support contract. Supported platforms: - .NET 10 on Windows, Linux, macOS, Android, iOS/tvOS - .NET 9 on Windows, Linux, macOS, Android, iOS/tvOS - .NET 8 on Windows, Linux, macOS, Android, iOS/tvOS - .NET 7 on Windows, Linux, macOS, Android, iOS/tvOS - .NET 6 on Windows, Linux, macOS - .NET 5 on Windows, Linux, macOS - .NET Framework 4.0, 4.5.x, 4.6.x, 4.7.x, 4.8.x - .NET Framework 3.5 SP1 - .NET Core 3.1 on Windows, Linux, macOS - Xamarin.Android (10.1 and higher; via .NET Standard 2.1) - Xamarin.iOS (13.10 and higher; via .NET Standard 2.1) - Mono 6.0 or higher on Linux and macOS |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 8.0.9797 | 489 | 10/28/2026 |
| 8.0.9709 | 1,781 | 8/3/2026 |
| 8.0.9673 | 1,548 | 6/25/2026 |
| 8.0.9663 | 203 | 6/24/2026 |
| 8.0.9643-rc.4 | 128 | 5/27/2026 |
| 8.0.9531-rc.3 | 182 | 2/4/2026 |
| 8.0.9440-rc.2 | 282 | 11/5/2025 |
| 8.0.9392-rc.1 | 313 | 9/19/2025 |
| 7.0.9796 | 153 | 10/28/2026 |
| 7.0.9649 | 235 | 6/23/2026 |
| 7.0.9561 | 1,860 | 3/6/2026 |
| 7.0.9448 | 11,472 | 11/12/2025 |
| 7.0.9391 | 6,266 | 9/17/2025 |
| 7.0.9313 | 7,185 | 6/30/2025 |
| 7.0.9209 | 7,898 | 3/20/2025 |
| 7.0.9147 | 8,515 | 1/16/2025 |
| 7.0.9119 | 5,257 | 12/19/2024 |
| 7.0.9083 | 6,279 | 11/13/2024 |
| 6.0.9280 | 5,145 | 6/30/2025 |