Skip to content
| Marketplace
Sign in
Visual Studio>Controls>Aspose.ZIP for .NET

Aspose.ZIP for .NET

Aspose Marketplace

|
67 clicks
| (0) | Trial
Aspose.ZIP for .NET is an easy to use API to compress, decompress and encrypt archives and files within .NET applications without knowing the detail of compression formats.

.NET API to Create & Manipulate Zipped Files

Aspose.ZIP for .NET class library allows .NET applications to compress/decompress files and folders without getting into the complexity of coding new compression algorithms or understanding the existing ones. Enable your programs to work with a vast range of features, such as creating archives, saving archives, archive extraction, encrypting/decrypting archives, compressing single or multiple files as well as directory contents. It also allows you to apply security to your archived and compressed files and folders via password, AES (128, 192, 256) encryption, or mixed encryption.

Archiving & Compression Library

  • Compress files and folders into standard ZIP formats.
  • Supports Deflate, Bzip2 & LZMA compression algorithms.
  • Apply simple password or AES128, AES192, AES256 encryption to archives.
  • Employ different protection schemes for each file within an archive.
  • Append more files to an existing zipped archive.
  • Use Gzip or Bzip2 to pack files & folders into a TAR archive.
  • Supports LZMA or LZMA2 compression & optional encryption to create 7z archives.
  • Create self-extracting compressed archives.

New Features & Enhancements in Version 20.12

  • Unpack the simplest 7z archive with the Store compression method.
  • Unpack the simplest 7z archive with the Bzip2 compression method.

Please visit Aspose.ZIP for .NET 20.12 Release Notes for the detailed notes.

Compress Files As

Compression: ZIP, TAR, GZIP, BZ2, 7z (within the LZMA & LZMA2 algorithms)

Read Archives

Decompression: ZIP, TAR, GZIP, BZ2

Platform Independence

Aspose.ZIP for .NET is implemented using Managed C# and can be used with any .NET language like C#, VB.NET, F#, and so on. It can be integrated with any kind of .NET application, from ASP.NET web applications to Windows .NET applications.

Compress DAT as ZIP using C# Code

You can execute the following code snippet to see how Aspose.ZIP API works in your environment or check the GitHub Repository for other common usage scenarios.

using (var arch = new Archive())
{
   arch.CreateEntry("filename.dat", dir + "file.dat");
   arch.Save(dir + "result.zip");
}

Create 7z Archive with AES Encryption

Aspose.ZIP for .NET allows you to apply password protection and encryption to zipped archives. The following C# code sample demonstrates the creation of a Seven Zip file with AES encryption setting.

using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings("p@s$"))))
{
   archive.CreateEntry("data.bin", new MemoryStream(new byte[] { 0x00, 0xFF }));
   archive.Save("archive.7z");
}

Home | Product Page | Docs | Demos | API Reference | Examples | Blog | Free Support | Temporary License

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2019 Microsoft