Search code examples
c++cwindowsaesunzip

Programatically unzip an AES encrypted zip file on Windows


I need to be able to unzip some AES (WinZip) encrypted zip files from within some C/C++ code on Windows. Has anybody got a way to do this? I'm hoping for either some appropriate code or a DLL I can use (with an example usage). So far my searches have proved fruitless.

The commonly prescribed InfoZip libraries do not support AES encryption.

The best solution I have at the moment is calling the 7z.exe command line program from my program, but considering I'll be unzipping 100 files or so, this is less than ideal.


Solution

  • Here is the minizip zlib contribution with AES support for both encryption and decryption. https://github.com/nmoinvaz/minizip