[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Can rubyzip do password protected files?

José Luis

4/3/2006 7:43:00 PM

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.

2 Answers

r.b.hicks

4/3/2006 8:53:00 PM

0

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).

José Luis

4/3/2006 9:05:00 PM

0

Thanks for the fast response.


r.b.hicks@gmail.com wrote:
> 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.