str4d / wage

A WASM package and web app for encrypting and decrypting age-encrypted files, powered by rage.
https://rage-encry.pt
Apache License 2.0
77 stars 10 forks source link

webapp: No-network process-in-memory mode #4

Open str4d opened 4 years ago

str4d commented 4 years ago

We are currently using StreamSaver.js to stream the processed file back to the user, which requires using a service worker, and thus interacting with a server. It would be great to have a no-network mode that encrypts or decrypts entirely in memory (with corresponding memory limits) and then offers the resulting Blob to the user.

str4d commented 4 years ago

Another reason this would be useful is that the current StreamSaver.js approach requires a secure context, which you obviously don't get for a locally-hosted HTML file (but do get for a pre-cached webpage from a server that you then use while offline...)