-
Notifications
You must be signed in to change notification settings - Fork 274
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
Does libzip support "Central Directory Encryption"? #415
Comments
No, it currently does not. We would probably need a new variant of |
How does the current For context, around 2% of all the ZIP archives that are opened by the ChromeOS Files App fail with |
I think recognizing it as a ZIP archive might work (at least without the consistency check flag). The data in the central directory is zeroed out though, so it'll be useless (no file sizes etc.) |
I wish I had one. Unfortunately, I don't even know how to create such a ZIP file with an encrypted central directory. |
Thomas found that Central Directory Encryption is patented, accoring to PKWare developer Marius Volkhart, see https://stackoverflow.com/questions/58394110/pkware-zip-central-directory-encryption Therefore, we can't implement it. If we can get an example zip archive, we'll make sure that it is recognised as a zip archive and that |
Interesting. That explains why such ZIPs aren't that common. |
Description
The ZIP format specification contains a "Central Directory Encryption" feature since version 6.2 released in 2004. I'm not sure if I have ever seen any tool or library that implements this feature. Does
libzip
deal with it? If yes, how can I create a ZIP archive with an encrypted central directory?Describe alternatives you've considered
The considered alternative is to use an inner ZIP that gets embedded and encrypted in an outer ZIP. This workaround should be compatible with other tools and libraries. However, this has performance and usability implications.
The text was updated successfully, but these errors were encountered: