'Generating password protected zip files from ruby on rails

Has anyone had any luck creating password protected zip files in rails?

I spent a bunch of hours trying to get Chilkat's 64 bit linux gem working on OSX. I got it listed as installed in my gem list, but I was never able to instantiate anything.

I'm on 1.9.2, 3.2.3, OSX.

Thanks in advance!



Solution 1:[1]

It is possible using the RubyZip library. Note that, as of now, it's marked as "Experimental". But it works. Also note that AES encryption is not yet supported.

https://github.com/rubyzip/rubyzip#password-protection-experimental

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 iconoclast