-
Notifications
You must be signed in to change notification settings - Fork 199
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 zipzap support password encryption? #26
Comments
I currently have no plans to add password encryption, but the library should be flexible enough to add the "traditional" zip-based encryption. If you or anyone wants to attempt this, I'll certainly review the pull request. Alternatively, you can contact me at glen low at pixelglow dot com if you're willing to contract me for this. As for the strong encryption option, it appears to be covered by some PKWARE patents, requires an additional license and may not be appropriate for an open-source project. See the zip file format specification for more details. |
Might be related: #38 |
We have a working password decryption in place, thanks to @danielgindi, see #49. |
Great! I'll be looking forward to use it as soon as I need it again. |
AES may be also supported soon, if I actually find the time for it :-) |
Update - AES is in a pull request. |
AES decryption is now available in the master branch. |
Any update on encryption? |
And also... In ZZAESDecryptInputStream.mm I see this method call: CCCryptorCreate(kCCEncrypt,
kCCAlgorithmAES,
kCCOptionECBMode,
derivedKey,
keyLength,
NULL,
&_aes); Shouldn't the first parameter be: kCCDecrypt? Because you are decrypting those files. That's what I understand from a quick look over the CommonCryptor.h file. |
No, I guess that is why it did not work for us earlier, we tried with On Wed, Feb 12, 2014 at 6:27 PM, cyupa [email protected] wrote:
|
I'll also have a look on it and see what I can do about it. Sadly, my knowledge on zip files and their file headers is near to none. |
If I understand you correctly, what you are missing really is encryption On Wed, Feb 12, 2014 at 6:51 PM, cyupa [email protected] wrote:
|
Yes. The decryption works ok, and indeed it seems that it works with kCCEncrypt instead of kCCDecrypt. The file I uploaded yesterday (if I remember correctly) was created with zipzap. But I somehow overlooked the fact that there was no ZZAESEncryptionOutputStream and no encryption. Because I need that, I'm willing to look into it, as far as I can go, and try to implement it. |
@cyupa, @danielgindi -- I would definitely appreciate an encryption implementation! Do note we probably have to refactor the stream classes for encryption in the same style as the ones we did for decryption. As for using |
Any word on creating password protected zip files? (I have no knowledge of programming in this area or I would readily contribute) |
…s to feature/docx * commit '74ff4bf1d7fb140aa78ec097d20e517835d3bc82': Fixes missing content types Adds missing documentation to image writer Updates missing file from last commit Improves content type handling for images Fixes small typo Adds support for page numbers Adds test for page number placeholder Restructures the xml boilderplate for images (ULYSSES-4822) Adds support for images Adds test cases for image support
My project needs the ability to delete/replace a file entry in an zip archive, but also need to support password. Does zipzap support password? If not, is it on the road map to support in a near future?
The text was updated successfully, but these errors were encountered: