haf / DotNetZip.Semverd

Please use System.IO.Compression! A fork of the DotNetZip project without signing with a solution that compiles cleanly. This project aims to follow semver to avoid versioning conflicts. DotNetZip is a FAST, FREE class library and toolset for manipulating zip files. Use VB, C# or any .NET language to easily create, extract, or update zip files.
Other
545 stars 218 forks source link

Can't extract data from the password-protected archive created with 7zip using BZip2 compression #248

Open Enedwait opened 2 years ago

Enedwait commented 2 years ago

I need to extract the archives in .Net Framework app but I find out that I can't extract the password-protected archives created with 7zip using BZip2 compression.

The library throws the exception: Not a valid BZip2 stream. byte 1, expected '90', got '135'

To reproduce it you can create any zip archive with password in 7zip and try to extract it.. For instance, like this: CreatingPasswordProtectedTestArchiveIn7zip

StackTrace: NotExtractingPasswordProtectedArchiveDataCreatedWith7zip_StackTrace.txt