* age-encryption in web assembly ** Compile Compile with: #+BEGIN_SRC wasm-pack build --target web #+END_SRC don't forget the ~--target web~, otherwise strange mimetype issues may arise in browsers. ** What? Mostly an experiment how well this works. Public key crypto works fine, but for some reason decrypting files encrypted with a passphrase takes an inordinate amount of time, and browsers' mining-detectors tend to complain. The encryption used is the [[https://crates.io/crates/age][age rust crate]], which is a reimplementation of Filippo Valsorda's [[age-encryption.org][age encryption]]. The rust implementation is still marked as beta, so this probably shouldn't be used for anything important.