Skip to content

aspose-zip/Aspose.ZIP-for-.NET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nuget Nuget GitHub

.NET API for Files Compression & Archiving

Aspose.ZIP for .NET class library enables your .NET applications to compress and decompress files and folders without the complexity of implementing or understanding compression algorithms. 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 entire directories. You can also secure your archived or compressed files and folders with password protection, using ZipCrypto or AES encryption (128-, 192-, or 256-bit), or mixed encryption.

Directory Description
Demos Source code for live demos hosted at https://products.aspose.app/zip/family.
Examples A collection of .NET examples that help you learn the product features.

Compress & Extract Files via .NET

  • Compress files and folders into standard ZIP format using Deflate, Bzip2, LZMA, PPMd, Xz or Zstandard compression algorithms.
  • Extract RAR4 and RAR5 archives, with or without encryption.
  • Apply simple password or AES128, AES192, AES256 encryption to archives.
  • Employ different protection schemes to individual files within an archive.
  • Append files to an existing ZIP archive.
  • Pack files and folders into a TAR or Cpio archive combining with Gzip, Bzip2, LZMA, LZ4, Lzip, Xz, Z and Zstandard.
  • Supports LZMA, LZMA2, PPMd or Bzip2 compression and optional encryption to create 7z archives.
  • Track the progress of compression.
  • Cancel archive extraction with a cancellation token.
  • Create self-extracting compressed archives.

Compress Files As

Compression: Zip, Tar, Cpio, GZip, Bz2, Iso, Cab, Lzip, LZ4, LZMA, Xar, Xz, Z, Zstandard, 7z

Read Archives

Decompression: Zip, Rar, Cab, Tar, Cpio, GZip, Bz2, Z, Xar, Xz, Lzip, LZ4, Arj, Lha, Lzx, Wim, Zstandard

Platform Independence

Aspose.ZIP for .NET is implemented in managed C# and can be used with any .NET language, such as C#, VB.NET, or F#. It integrates seamlessly with any kind of .NET application, from ASP.NET web applications to Windows desktop applications.

Get Started with Aspose.ZIP for .NET

To install Aspose.ZIP for .NET, run Install-Package Aspose.Zip from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have Aspose.ZIP for .NET and want to upgrade the version, please execute Update-Package Aspose.Zip to get the latest version.

How to ZIP files in C#

using (var archive = new Archive())
{
   archive.CreateEntry("entry_name.dat", "input_file.dat");
   archive.Save("result_archive.zip");
}

How to UnZIP files in C#

using (var archive = new Archive("input_archive.zip"))
{
   archive.ExtractToDirectory("outputDirectory");
}

How to create 7z Archive with AES Encryption

using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings("p@s$"))))
{
   archive.CreateEntry("data.bin", "input_file.dat");
   archive.Save("result_archive.7z");
}


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

About

Aspose.ZIP for .NET examples, plugins and showcase projects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors