summaryrefslogtreecommitdiff
path: root/age-wasm/Readme.org
blob: b997ea0e64a794787ae4908e2377635faa46ada4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
* 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.