icsharpcode / SharpZipLib

#ziplib is a Zip, GZip, Tar and BZip2 library written entirely in C# for the .NET platform.
http://icsharpcode.github.io/SharpZipLib/
MIT License
3.71k stars 979 forks source link

AES Support #35

Open dgrunwald opened 10 years ago

dgrunwald commented 10 years ago

SD-1649, originally created on 2/22/2010 08:18:51 by David Pierson

Add 128 and 256 bit AES support compatible with WinZip's implementation.


Comment from David Pierson on 2/22/2010 08:21:57: Mostly implemented. Creation via Zipfile and ZipOutputStream, and extraction via ZipFile is now handled (r499). Extraction via ZipInputStream is not implemented. FastZip is not implemented.


Progress:

¹ Creation of archives with 192-bit key is not supported in any of the leading archiving applications (WinRAR, WinZip, 7-zip, info-zip, Keka).

f00f commented 4 years ago

Are there plans to implement AES support for ZipInputStream? Is there an issue or a PR for it? What's the problem with it?

Numpsy commented 4 years ago

Theres a partial implementation in #381, though i hit an issue with auth key handling that I wasn't sure how to fix simply and haven't had chance to look at it recently

piksel commented 4 years ago

Yes, the "problem" is that ZipInputStream works very differently to ZipFile, so it has to be implemented in another (more complex) way.

Numpsy commented 4 years ago

fwiw, I started looking at adding the encryption side pieces to ZipFile ages back and shelved it because I had no time, but i'm looking to get more of that done (#440 is a subset of the required change and tests anyway)

Numpsy commented 4 years ago

WIP for creating AES encrypted files with ZipFile in #443

remogloor commented 3 years ago

Theres a partial implementation in #381, though i hit an issue with auth key handling that I wasn't sure how to fix simply and haven't had chance to look at it recently

The issue with the auth key is solved in #551