Diffie-Hellman implementation in C++ compiled to JavaScript using Emscripten
As with any JavaScript crypto stuff, this probably shoudn't be used seriously on the web
- Follow instructions on gmp.js and compile it (note that it only compiles on 32-bit systems)
- Download libsodium tarball, extract the contents of the libsodium-x.x.x folder to libsodium and compile that
- Run make