Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't unzip AppleCrypto protected files with classic unzip tools #398

Closed
Coeur opened this issue May 21, 2019 · 2 comments
Closed

Can't unzip AppleCrypto protected files with classic unzip tools #398

Coeur opened this issue May 21, 2019 · 2 comments
Labels
encryption Encryption/decryption issue fixed Issue or bug has been fixed

Comments

@Coeur
Copy link
Contributor

Coeur commented May 21, 2019

Using ZipArchive based on minizip 2.8.7 with AppleCrypto, I made this AES password protected file (password is "got"):
v2.zip

But it can't be unzip by popular tools like:

@Coeur
Copy link
Contributor Author

Coeur commented May 21, 2019

Here is a pure minizip scenario:

$ cmake . -DMZ_BUILD_TEST=ON -DMZ_BZIP2=OFF -DMZ_LZMA=OFF -DMZ_BRG=OFF
$ cmake --build .
$ ./minizip -p pwd zip_apple.zip README.md 
$ rm README.md 
$ cmake . -DMZ_BUILD_TEST=ON -DMZ_BZIP2=OFF -DMZ_LZMA=OFF -DMZ_BRG=ON
$ cmake --build .
$ ./minizip -x -p pwd zip_apple.zip
Minizip 2.8.7 - https://github.com/nmoinvaz/minizip
---------------------------------------------------
-x -p *** zip_apple.zip 
Archive zip_apple.zip
Extracting README.md
Error -3 saving entries to disk zip_apple.zip
Error -105 closing archive for reading

@nmoinvaz
Copy link
Member

That should fix it. Let me know if you have problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
encryption Encryption/decryption issue fixed Issue or bug has been fixed
Projects
None yet
Development

No branches or pull requests

2 participants