-
-
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
Encryption support #25
Comments
Hello Nikolai, In the long term I'd like to support most parts of the ZIP Specification but I am not sure yet if there is a plausible way to support encryption. Traditional PKWARE Encryption is basically useless today and providing support for it might give users a false sense of security. |
I agree with your assessment regarding licensing problems and the sheer number of encryption methods, and I have no solution for that. The reason I mentioned PKWARE encryption is that even though it is not secure it is very common. There are a lot of encrypted ZIPs out there and the vast majority uses the traditional encryption. Currently I'm developing a medical application for a customer who uses ZIP with PKWARE encryption (in their own file format). I wanted to adapt ZIPFoundation to work with these files but couldn't because of the encryption. I was looking into implementing it myself but I'm too busy currently. |
Thanks for your input. |
That's what I thought. When I find time I'll really like to look into this. For my current project I had to use some minizip based Swift ZIP framework—and it's horrible. Your framework on the other hand looks really well crafted. Congrats! |
Thanks :) |
We also have a number of clients that have zip files with passwords. We need to be able to process these files |
@weichsel would be a CryptoSwift handy to handle that part across the platforms? |
@krzyzanowskim Finding a way to decrypt certain ZIP archive types with CryptoSwift would be awesome. Sadly ZIP Encryption is a bit of a jungle.
The first one should be relatively easy to implement and I'd directly add de- and encryption code to ZIPFoundation (mostly to support migration away from that format) if someone contributes the code. |
Info-Zip's ZIP & UNZIP implement encryption support in C. Perhaps someone could port it to Swift? I am not adequately familiar enough with C or Swift to do this myself. |
Are there any plans to support one of the encryption methods described in the ZIP format specification?
The very common "Traditional PKWARE Encryption" would be a great addition, as it's part of the ZIP specification.
The text was updated successfully, but these errors were encountered: