title: Efficiently encrypt/decrypt large file with cryptojs
body: <p>I want to encrypt large string (200 MB).
  The string come from dataUrl (base64) corresponding to file.</p>
  
  <p>I'm doing my encryption in the browser.</p>
  
  <p>My issue is that at the moment, i chunked string into small part into an array.
  Then i encrypt this chunks.</p>
  
  <p>At the moment encrypting the string will full the memory.
  Here is how i'm doing it.</p>
  
  <pre><code>var encryptChunk = function(chunk, index){
    encryptedChunks.push( aesEncryptor.process( chunk ));
    sendUpdateMessage( "encryption", index+1, numberOfChunks );
  }
  chunkedString.forEach(encryptChunk);
  encryptedChunks.push( aesEncryptor.finalize() );
  </code></pre>
  
  <p>I assume that, there should be a better way of doing this. But i can't find a memroy efficient way of doing this.</p>