Picocrypt/web
2024-01-04 15:02:16 -05:00
..
go.mod Add web interface 2023-08-05 17:16:38 -04:00
go.sum Add web interface 2023-08-05 17:16:38 -04:00
index.go Add web interface 2023-08-05 17:16:38 -04:00
index.html Add web interface 2023-08-05 17:16:38 -04:00
README.md Add detail to compiling for web 2024-01-04 15:02:16 -05:00

Compiling

To build the web interface from source, you will need to compile the Go code into a WebAssembly file:

GOOS=js GOARCH=wasm go build -ldflags="-s -w" index.go

This will create a binary file. Compress it with LZMA, encode it in Base64, and paste the final result to L198.

You'll also need to update wasm_exec.js (replace the Go version accordingly) on L197 to glue everything together.