title: How should I encrypt large files using clientside JavaScript?
body: <p>I'm doing clientside encryption for a file transfer protocol (so even the server won't know what the file is.) My current method is to import the file into a browser filesystem, break up the file into 1 MB chunks, store each chunk in memory, encrypt each chunk with AES, then concatenate all the chunks and upload. This prevents the memory from getting overloaded, but it's rather inefficient. Is there a better method? A way to encrypt a whole file in a browser filesystem? Thanks!</p>