Reputation: 657
What's the easiest way to zip and encrypt a file with AES (128 or 256) in a Rails app, so that the zip archive can be opened with WinZip?
Requirements:
Gems:
Any advice on what I can do here?
Thanks!
Upvotes: 1
Views: 1017
Reputation: 23939
Are commercial products out of the question? Chilkat Ruby Zip appears to support WinZip AES. The example code looks pretty temptingly easy.
There also appears to be a Java library available. If you're running in JRuby... Or if you feel like porting!
Upvotes: 2