title: Zip and Encrypt Files in memory Ruby/Rails
body: <p>I was trying to zip a few files and password protect them.
  The catch here is I cannot save the file on the disk.</p>
  
  <p>I tried using Rubyzip. But seems like it doesn't support file encryption.</p>
  
  <p>I tried using Zipruby but it only allows Encrypting the files already on the disk. (I am not sure about this, but I could not find a way to do it in memory).</p>
  
  <p>I want to Zip and Encrypt Files in memory in Ruby.</p>