Bug #79634 [Com]: Could not open password protected zip archive
| From: | freshprince dot 2b at gmx dot net | Date: | Tue, 26 May 2020 14:55:42 +0000 |
| Subject: | Bug #79634 [Com]: Could not open password protected zip archive | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-227175@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79634&edit=1
ID: 79634
Comment by: freshprince dot 2b at gmx dot net
Reported by: freshprince dot 2b at gmx dot net
Summary: Could not open password protected zip archive
Status: Not a bug
Type: Bug
Package: Zip Related
Operating System: Mac
PHP Version: 7.4.6
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Thank you!
Previous Comments:
------------------------------------------------------------------------
[2020-05-26 14:00:23] cmb@php.net
Oh, I just learned that classic PKWARE encryption will only be
supported as of libzip 1.7.0[1], so stay tuned!
[1] <https://github.com/nih-at/libzip/pull/153>
------------------------------------------------------------------------
[2020-05-26 13:23:56] freshprince dot 2b at gmx dot net
Ok, then it was my fault :)
But what would be the correct encryption method to work with default unzip tools? In the
documentation I read "The encryption method defined by one of the ZipArchive::EM_
constants."
With "EM_NONE" there is no password prompt and with "EM_AES_128",
"EM_AES_192" and "EM_AES_256" the same situation will occure.
------------------------------------------------------------------------
[2020-05-26 11:22:12] cmb@php.net
Thanks! That was what I expected. So this issue doesn't look to
be a problem of PHP, but rather limited Zip support by the other
tools you're using. Consider to file respective feature requests
to the vendors of these tools, or for best portability don't use
EM_AES_* encryption (but be aware that the classic Zip encryption
is very weak).
------------------------------------------------------------------------
[2020-05-26 11:13:55] freshprince dot 2b at gmx dot net
> I meant, please try to open the archive created by PHP with 7-zip.
I can open archive created by PHP with 7-zip.
------------------------------------------------------------------------
[2020-05-26 09:05:28] cmb@php.net
I meant, please try to open the archive created by PHP with 7-zip.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=79634
--
Edit this bug report at https://bugs.php.net/bug.php?id=79634&edit=1