Skip to content

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nuget Nuget GitHub

.NET API for Files Compression & Archiving

Aspose.ZIP for .NET class library allows your .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 using ZipCrypto or AES (128, 192, 256) encryption 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 or PPMd compression algorithm.
  • Extract RAR4 and RAR5 archives, with and without encryption.
  • Apply simple password or AES128, AES192, AES256 encryption to archives.
  • Employ different protection scheme to each file within an archive.
  • Append more files to an existing zipped archive.
  • Use Gzip, Bzip2, Xz, Z and Lzip to pack files & folders into a TAR or Cpio archive.
  • Supports LZMA, LZMA2 or Bzip2 compression & optional encryption to create 7z archives.
  • Track progress of compression.
  • Create self-extracting compressed archives.

Compress Files As

Compression: Zip, Tar, Cpio, GZip, Bz2, Z, Xz, Lzip, 7z

Read Archives

Decompression: Zip, Rar, Cab, Tar, Cpio, GZip, Bz2, Z, Xz, Lzip

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.

Get Started with Aspose.ZIP for .NET

Are you ready to give Aspose.ZIP for .NET a try? Simply execute 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", new MemoryStream(new byte[] { 0x00, 0xFF }));
   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

No packages published