Can rubyzip do password protected files?

J

José Luis

Hi.

I've been looking at the rubyzip docs and haven't found anything
concerning ziping/unziping password protected files.

Does rubyzip or any other lib have that capability?

Thanks in advance.
 
R

r.b.hicks

I ran into this myself recently. Rubyzip is a wrapper around the zlib
compression library.

Zlib itself doesn't support password protected zips. There is another
library made by the same folks that created zlib called Info-zip. It
does support password protection but you'll have to write your own to
wrapper to make it a Ruby extension.

N.B. There's a comment in the source for info-zip that implies that
the password protection handling is hard to work with. I found that to
be the case. In the end, I purchased a third party compression library
(from ChilKat).
 
J

José Luis

Thanks for the fast response.


I ran into this myself recently. Rubyzip is a wrapper around the zlib
compression library.

Zlib itself doesn't support password protected zips. There is another
library made by the same folks that created zlib called Info-zip. It
does support password protection but you'll have to write your own to
wrapper to make it a Ruby extension.

N.B. There's a comment in the source for info-zip that implies that
the password protection handling is hard to work with. I found that to
be the case. In the end, I purchased a third party compression library
(from ChilKat).

I had a feeling that would be the case.
Thanks for the tip.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top