-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Password protection #86
Comments
Hello, I think the priority here is to make a correctly working version 1.0.0 and then we'll see about adding such features. But thanks for the suggestion! Cheers, |
Is there any updated comment? I want to do this issue. |
Please have a go at it! |
@jeanpaze There has been no update on that. Unless someone starts working on it, there won't be any either. |
@NicolasCARPi, @jeanpaze, in the past, I tried to use PHP read Zip stream to accomplish this issue. But it's hard to implement this. I will try to use |
Hi @peter279k, I've seen a couple of messages from you in some other repos. We pretty much want the same feature. I tried to mess around the code but as you said, it's hard and I don't have enough PHP skills for that, but please let me know if there is something I could help you with. Cheers! |
While having a password protection feature in zip would be a good thing for sure, we can also think about alternatives. This is a must read: https://security.stackexchange.com/questions/35818/are-password-protected-zip-files-secure (TL;DR password protection is quite weak). Maybe encrypting the resulting zip with a proper cipher and a library like https://github.com/defuse/php-encryption would be better. It depends what you want to achieve, is it confidentiality, authenticity or both? Using gpg could also be a solution. |
Good point @NicolasCARPi. For context (in my case), I want to offer confidentiality for people that download files from my cloud server. That said, I know that just password protection is not enough and should be encrypted as well but this lib automatically encrypts the zip when you set a password, as far as I could understand here (see Someone mentioned this: Encryption is done on the files not the container itself, so confidentiality & integrity are still granted for the files inside. The ZIP archive itself isn't password-protected, but the files inside are. In theory, encrypting files inside a zip means that you'll have to set a password, correct? |
Description of the problem
Can you add password protection to this library?
The text was updated successfully, but these errors were encountered: