js-nacl
Version:
Emscripten-compiled Javascript version of NaCl, the Networking and Cryptography library.
23 lines (22 loc) • 519 B
HTML
<html>
<head>
<title>Testing nacl cryptography in the browser</title>
<script src="lib/nacl.js"></script>
<script src="test_nacl.js"></script>
<script>
function main() {
try {
do_tests(nacl,
function (x) { document.getElementById("output").innerHTML += x + "\n"; });
} catch (e) {
alert(e.message);
}
}
window.onload = main;
</script>
</head>
<body>
<pre id="output"></pre>
</body>
</html>