MAC ENCRYPTED ZIP ARCHIVE ARCHIVE
I created an archive of the same file with WinZip for Mac, with the same password on the file. Skipping: Test File A.txt incorrect password
MAC ENCRYPTED ZIP ARCHIVE CODE
This is what I get on the command line, with a return code of 82: $ unzip -P 111111 PasswordProtected.zip What could I be doing wrong to cause it to work in some clients and not in others? I would expect it to work or be broken across the board. I'm working on getting familiar with the way Zip files work, but this still seems mysterious to me. I tried changing the text encoding to ASCII, and Latin 1 (CP-1252), but that didn't seem to make a difference. However, WinZip (Mac and Windows) and the Mac's unzip command-line app complain about an incorrect password.įor testing purposes, I'm encrypting the files using 111111 as the password, as indicated in the bug report.
It's readable by BetterZip and UnzipKit on the Mac, as well as 7zip on Windows. It's using the zipOpenNewFileInZip3() MiniZip function to open the file for writing. UnzipKit writes the password as a UTF-8 string, using the MiniZip wrapper around zlib, which only supports "Traditional PKWare Encryption", not AES.
Basically, when writing files encrypted with a password to a Zip file, the resulting archives are readable by some Zip clients, and not others. I'm investigating a bug report on my open source UnzipKit project.