9

Is there a zip libary which will zip and unzip, with password protection ?

Guillaume
  • 21,685
  • 6
  • 63
  • 95
Jules
  • 7,568
  • 14
  • 102
  • 186
  • 1
    I believe the answer to your question with examples is found here: http://stackoverflow.com/questions/8150185/how-to-zip-folders-in-iphone-sdk – bogen Nov 29 '11 at 15:48

3 Answers3

4

Try Objective-ZIP. Simple to use, works on Mac OS X and iOS, and has support for password-protected ZIP archives. It's also pretty efficient.

EDIT: The google code link is a 404 now. I think this is the new URL for the same project: https://github.com/flyingdolphinstudio/Objective-Zip

Abhi Beckert
  • 32,787
  • 12
  • 83
  • 110
Macmade
  • 52,708
  • 13
  • 106
  • 123
  • 2
    Just to clarify for others looking into this solution. Just spent the past 3 days screwing around with this library. It has some major issues with password support, and I do NOT recommend as of the time of this writing. – Tim Nov 27 '12 at 10:48
  • How does it? I got the project from git on 6 Feb 2014. what should we use as crc32: ? I have tried a lot but when I try to open the zip with an app on my Mac, it says that the password is wrong. – Giorgos Ath Feb 07 '14 at 11:58
  • This is a very old answer, but it comes as my first search result, so I'm leaving this: Objective-Zip defines NOCRYPT and NOUNCRYPT to disable encryption since it's considered weak."_Weak encryption code in MiniZip library was explicitly disabled by removing crypt.h and defining NOCRYPT and NOUNCRYPT_" – ASalazar Feb 14 '14 at 00:40
2

Question is old but I hope this library can help someone SSZipArchive

HereTrix
  • 1,315
  • 7
  • 13
2

Take a look at ZipArchive. It supports password protection.

Jeff Wolski
  • 6,332
  • 6
  • 37
  • 69