Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add Zip Archives password support - #122093

#122093
Merged
alinpahontu2912 merged 104 commits into
dotnet:maindotnet/runtime:mainfrom
alinpahontu2912:zip_passwordalinpahontu2912/runtime:zip_passwordCopy head branch name to clipboard
Jul 9, 2026
Merged

Add Zip Archives password support#122093
alinpahontu2912 merged 104 commits into
dotnet:maindotnet/runtime:mainfrom
alinpahontu2912:zip_passwordalinpahontu2912/runtime:zip_passwordCopy head branch name to clipboard

Conversation

@alinpahontu2912

@alinpahontu2912 alinpahontu2912 commented Dec 2, 2025

Copy link
Copy Markdown
Member

Fixes #1545

Big Milestones and status:

  • Read Encrypted Entries (ZipCrypto, WinZip AES)
  • Create Encrypted Entries (ZipCrypto, Winzip AES)
  • Update Mode
  • Add runtime assets for checking compat with WinRar/7zip/WinZip/etc
  • Security check for Cryptography methods
  • Final API design

@rzikm
rzikm self-requested a review December 11, 2025 12:22
Copilot AI review requested due to automatic review settings July 1, 2026 07:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 42 out of 42 changed files in this pull request and generated 4 comments.

Comment thread src/libraries/System.IO.Compression/ref/System.IO.Compression.cs
@GrabYourPitchforks
GrabYourPitchforks dismissed their stale review July 2, 2026 17:18

Lifting hold.

@GrabYourPitchforks

Copy link
Copy Markdown
Member

@alinpahontu2912 We signed off earlier this week on the security design you submitted. Thanks. :)

Remember to update the public-facing docs so that consumers know what explicit promises (and non-promises!) the component intends to make here.

Comment thread src/libraries/System.IO.Compression/src/System/IO/Compression/WinZipAesStream.cs Outdated
Comment thread src/libraries/System.IO.Compression/src/System/IO/Compression/ZipArchiveEntry.cs Outdated
Comment thread src/libraries/System.IO.Compression/src/System/IO/Compression/ZipCryptoStream.cs Outdated

@bartonjs bartonjs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I never looked at the tests at all.

I skimmed the majority of the source code looking for places where the password might be mishandled.

I aggressively reviewed the crypto parts of WinZipAesStream and ZipCryptoStream.

Those parts LGTM.

Since I didn't do a full review I won't give a checkmark, but I also don't have any reason to hold.

Copilot AI review requested due to automatic review settings July 7, 2026 07:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 42 out of 42 changed files in this pull request and generated 2 comments.

Comment thread src/libraries/System.IO.Compression/ref/System.IO.Compression.cs
alinpahontu2912 and others added 2 commits July 7, 2026 13:31
…WinZipAesStream.cs

Co-authored-by: Jeremy Barton <jbarton@microsoft.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 42 out of 42 changed files in this pull request and generated 4 comments.

Comment thread src/libraries/System.IO.Compression/ref/System.IO.Compression.cs

@rzikm rzikm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, great work!

@MihaZupan

Copy link
Copy Markdown
Member

@alinpahontu2912 did you test running the new fuzzers locally?
They're failing to build in CI due to missing corpus files that you've referenced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add password to ZipArchive

8 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.