Closed CMEONE closed 3 years ago
Sorry, the goal of this project is to be a JavaScript translation of TweetNaCl. There will be no new cryptographic features added. As you pointed out, sealed boxes can be easily supported via a third-party package. If you want to maintain one, I can replace the link in README.
Hello @dchest, apologies for the late reply. If you could please add the following libraries in the README, that would be greatly appreciated:
sealed boxes
Thanks so much!
nacl.sealedbox(msg, nonce, publicKey)
andnacl.sealedbox.open(msg, nonce, secretKey)
tonacl.js
andnacl-fast.js
nacl.js
andnacl-fast.js
:nacl.lowlevel.crypto_sealedbox_NONCEBYTES = crypto_sealedbox_NONCEBYTES; nacl.lowlevel.crypto_sealedbox_PUBLICKEYBYTES = crypto_sealedbox_PUBLICKEYBYTES; nacl.lowlevel.crypto_sealedbox_SECRETKEYBYTES = crypto_sealedbox_SECRETKEYBYTES;
nacl.sealedbox.publicKeyLength = crypto_sealedbox_PUBLICKEYBYTES; nacl.sealedbox.secretKeyLength = crypto_sealedbox_SECRETKEYBYTES; nacl.sealedbox.nonceLength = crypto_sealedbox_NONCEBYTES; nacl.sealedbox.overheadLength = nacl.box.overheadLength + crypto_sealedbox_PUBLICKEYBYTES;