js-nacl
js-nacl copied to clipboard
Pure-Javascript High-level API to Emscripten-compiled libsodium routines.
This is a more up-to-date pull request than PR #42 and also includes test suite and compiled nacl_factory.js.
I would like to use js-nacl in a Quasar/Vue project but struggle a bit with the factory callback instantiation. What I would like to do is: ``` createHashHex: function (myString)...
The README (very correctly) notes that you should not derive a key without running it through a strengthening function like PBKDF2, but libsodium itself already ships with one—Argon2. From brief...
Hi TonyG In my php I'm using sodium_bin2hex(sodium_crypto_box_publickey(sodium_crypto_box_keypair())) which I pass to the javascript: bpkeypair=''; nacl_factory.instantiate(function(nacl){ akeypair=nacl.crypto_box_keypair(); message=nacl.encode_utf8(msg); nonce=nacl.crypto_box_random_nonce(); }); nacl_factory.instantiate(function(acl){ ctext=acl.crypto_box(message,nonce,bpkeypair,akeypair.boxSk); n2h=acl.to_hex(nonce); }); when I pass "cipher text" and...
I appreciate that the sk and pk suffixes are used for consistency with the nacl documentation however I think there might be a risk that new developers will think 'sk'...