artem-karpenko / archiver-zip-encrypted

Plugin for archiver to create ZIP archives with password using either AES or legacy Zip 2.0 encryption
MIT License
60 stars 5 forks source link

Fix local size field #2

Closed artem-karpenko closed 5 years ago

artem-karpenko commented 5 years ago

Need to think of a way to set real and compressed size fields in local file headers in resulting ZIP file. Apparently while 0 sizes work fine for plain archives, it doesn't work for encrypted files (7-Z throws a header error when unpacking).

artem-karpenko commented 5 years ago

See https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT. It's actually possible to provide crc and sizes right after file data while setting appropriate bit GBD record.