IRONSOFTWAREHOME
Extract Protected ZIP
using IronZip;
using IronZip.Enum;

// Extract protected ZIP
IronZipArchive.ExtractArchiveToDirectory("output.zip", "extracted", "P@ssw0rd");
Imports IronZip
Imports IronZip.Enum

' Extract protected ZIP
IronZipArchive.ExtractArchiveToDirectory("output.zip", "extracted", "P@ssw0rd")
NuGet Download
PM > Install-Package IronZip
Extract Protected ZIP

Extract Protected ZIP

IronZIP allows users to extract protected ZIP archives with support for normal, AES128, and AES256-based encryption. Its versatility allows you to easily extract a wide range of ZIP files, whether lightly secured or highly protected. The library simplifies the process for mission-critical applications and easily integrates into existing applications or as a stand-alone extractor.

Extracting Zip Archive

To begin with, we need to include the IronZip namespace in our project, which provides access to its functionalities. We can then utilize the method ExtractArchiveToDirectory to extract the contents of a ZIP archive to a specified location.

This function extracts the contents of a ZIP file into the designated directory. The first argument requires the absolute path of the ZIP file from which you want to extract data. The second argument specifies the target directory where the extracted files will be placed. If the ZIP archive is password-protected, the third argument must include the correct password; otherwise, the extraction process will fail and result in a runtime error.

Learn to Create & Extract ZIP Files with IronZIP
View on GitHub

Ready to Get Started?

Nuget Downloads 23,187Version:2026.9just released

Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
Book your free Live Demo
Booking Badge

Trusted by Millions of Engineers Worldwide

Iron Software's customer logos
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required