{"_id":"tweetnacl-sealedbox-js","_rev":"8-ba7a8a64efeb37b1ccdc73b5f5466129","name":"tweetnacl-sealedbox-js","description":"This library implements [sealed box](https://download.libsodium.org/doc/public-key_cryptography/sealed_boxes.html) for TweetNaCl.","dist-tags":{"latest":"1.2.0"},"versions":{"0.2.0":{"name":"tweetnacl-sealedbox-js","version":"0.2.0","description":"This library implements [sealed box](https://download.libsodium.org/doc/public-key_cryptography/sealed_boxes.html) for TweetNaCl.","main":"sealedbox.node.js","scripts":{"test":"webpack --config webpack.node.config.js && mocha","prepublishOnly":"webpack --config webpack.node.config.js && webpack -p --config webpack.web.config.js"},"author":"","license":"MIT","devDependencies":{"mocha":"^3.2.0","sodium":"^2.0.1","webpack":"^2.3.3","webpack-node-externals":"^1.5.4"},"dependencies":{"blakejs":"^1.0.1","tweetnacl":"^1.0.0-rc.1"},"gitHead":"33ab9582af756176a1a373cad72c4e7bc3c737cf","_id":"tweetnacl-sealedbox-js@0.2.0","_shasum":"176cd4800f5af964204ee7b1044eb19162fbc56c","_from":".","_npmVersion":"4.4.4","_nodeVersion":"7.7.3","_npmUser":{"name":"whs","email":"manatsawin@gmail.com"},"dist":{"shasum":"176cd4800f5af964204ee7b1044eb19162fbc56c","tarball":"https://registry.npmjs.org/tweetnacl-sealedbox-js/-/tweetnacl-sealedbox-js-0.2.0.tgz","integrity":"sha512-SDuyx+PrFIKLn7xj24xBhkt3TIhl+h/XGtLx2LcfNH8b7SaO9RqXpkJ3le9lHsDVFoPT+7a/EdeI+1ZmQ+93mA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQDIk/eiA+oecqnW3bKrQQABDeVMu61G9qZ44JFi8DrFOwIfTc//dHuzwafP5gpuejOXnQ76mjLrCyLhV0n8TkfvXA=="}]},"maintainers":[{"name":"whs","email":"manatsawin@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/tweetnacl-sealedbox-js-0.2.0.tgz_1491470223136_0.6330953410360962"},"directories":{}},"1.0.0":{"name":"tweetnacl-sealedbox-js","version":"1.0.0","description":"This library implements [sealed box](https://download.libsodium.org/doc/public-key_cryptography/sealed_boxes.html) for TweetNaCl.","main":"sealedbox.node.js","scripts":{"test":"webpack --config webpack.node.config.js && mocha","prepublishOnly":"webpack --config webpack.node.config.js && webpack -p --config webpack.web.config.js"},"author":"","license":"MIT","devDependencies":{"mocha":"^3.5.3","sodium":"^2.0.1","webpack":"^3.6.0","webpack-node-externals":"^1.6.0"},"dependencies":{"blakejs":"^1.1.0","tweetnacl":"^1.0.0"},"gitHead":"7827c71f865dd61cef4be58c0941036276b6b711","_id":"tweetnacl-sealedbox-js@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"whs","email":"manatsawin@gmail.com"},"dist":{"integrity":"sha512-VHvweEV4C9b8yNenGDLPb2jhdcVVWOuCXPWX2kjX6SsJirjhVFGFtCVQtP5lISWLRIAMOe6i/ByBup+93SFuRw==","shasum":"c01868b38e201ba50c913be3bbcd8e8e7486fedd","tarball":"https://registry.npmjs.org/tweetnacl-sealedbox-js/-/tweetnacl-sealedbox-js-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdu4hVogizk5peQXIkcnhJv5z/7OgELO8Dz4EDclHBFgIgDUQGHgla+2dk+hVG6/+NRUJ6RFrT27rmlFX93DhJmAc="}]},"maintainers":[{"name":"whs","email":"manatsawin@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tweetnacl-sealedbox-js-1.0.0.tgz_1506011444361_0.6914752663578838"},"directories":{}},"1.1.0":{"name":"tweetnacl-sealedbox-js","version":"1.1.0","description":"This library implements [sealed box](https://download.libsodium.org/doc/public-key_cryptography/sealed_boxes.html) for TweetNaCl.","main":"sealedbox.node.js","module":"entrypoint.js","modules.root":"src","scripts":{"test":"webpack --config webpack.node.config.js && mocha","prepublishOnly":"webpack --config webpack.node.config.js && webpack -p --config webpack.web.config.js"},"author":"","license":"MIT","devDependencies":{"mocha":"^4.0.1","sodium":"^2.0.3","webpack":"^3.10.0","webpack-node-externals":"^1.6.0"},"dependencies":{"blakejs":"^1.1.0","tweetnacl":"^1.0.0"},"gitHead":"496f9bd7736540ff33ae0faca461dc2656e2011d","_id":"tweetnacl-sealedbox-js@1.1.0","_npmVersion":"5.6.0","_nodeVersion":"9.2.1","_npmUser":{"name":"whs","email":"manatsawin@gmail.com"},"dist":{"integrity":"sha512-4TC7X7NWNIwLJbfXyKENc83HSv8hA4YQSt0zY1L/eUCtzpr6hwBGtnPp7iYLaduoHCInIHm427qp+Ay1W30T9Q==","shasum":"8a87d2777253552b05a61b28728d41e515dbc4cf","tarball":"https://registry.npmjs.org/tweetnacl-sealedbox-js/-/tweetnacl-sealedbox-js-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH0XqmaLRjwZQzs8jsOUt7wCAVQ5XD4491wvr6huyLuoAiBWGF5+3Hujq443FyNwdAeQHIEngV/gU0xtp6pdr/4NNg=="}]},"maintainers":[{"name":"whs","email":"manatsawin@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tweetnacl-sealedbox-js-1.1.0.tgz_1513509083345_0.44977255584672093"},"directories":{}},"1.2.0":{"name":"tweetnacl-sealedbox-js","version":"1.2.0","description":"This library implements [sealed box](https://download.libsodium.org/doc/public-key_cryptography/sealed_boxes.html) for TweetNaCl.","main":"sealedbox.node.js","module":"entrypoint.js","modules.root":"src","scripts":{"test":"webpack --config webpack.node.config.js && mocha","prepublishOnly":"webpack --config webpack.node.config.js && webpack -p --config webpack.web.config.js"},"author":"","license":"MIT","devDependencies":{"libsodium-wrappers":"^0.7.5","mocha":"^6.2.0","webpack":"^4.39.2","webpack-cli":"^3.3.7","webpack-node-externals":"^1.7.2"},"dependencies":{"blakejs":"^1.1.0","tweetnacl":"^1.0.1"},"gitHead":"d2b10cdfe3e2b71ce2ee6cb4b2a178947d3d0bf6","_id":"tweetnacl-sealedbox-js@1.2.0","_nodeVersion":"11.15.0","_npmVersion":"6.10.3","dist":{"integrity":"sha512-QoCr8K2hwri+ky7SUa22oSre8g88XaWi0hwwWd16pJMuDyn5gL/UyE0PyR2EOFEMJ70T2trJ9+Sv+Qa18olEmQ==","shasum":"37f0d49a24445d6f55a1b9e8870568529bcb233f","tarball":"https://registry.npmjs.org/tweetnacl-sealedbox-js/-/tweetnacl-sealedbox-js-1.2.0.tgz","fileCount":15,"unpackedSize":15078,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdWXqKCRA9TVsSAnZWagAAM0UP/3ijm7b8K/J2UaUedLWj\nHN9bW2AMYrhKEGWMNYFpqqHdsImCL6+qcXYraqM0Qc+atIoG60FC6X93b09Z\nbySJHaGlaVyJ24NtJkMlnZRC6781pe0eEOTiqS2cwvwBAm8TT0A0yuoIWVDg\nvTEY7uzfhkcImg1NK0ynM/2Ekm17HM9YcuiEGrX8+2pzuAfvNAsWdpkNS9cW\nXqd1SFRL7nKsZ/OBLR5H4Nu31b7AFWdctq+t0O7yrlBi7Q575CYH/hEz0ewu\n2EqDd2Vw7oUUlIdmP4kQd9KdPL8cjxraBRWd6/27yCdjGe54YWf1qLdYTWDw\nqPpNEJiFX+gikLazL2boFz5FT25WD+vOYaeH+Tc6aNrlew4JHM1TGUCAmPoj\nMctP6/XBi8N/i4vfNjvGy+4pySu+wsj6nH24OhusKRlYWkw60QLpEqOmZ3T+\nh/GryTJtcRtLyU/xsO+9pNogPMIJNTm6IOgbv8Sf8qaFvsc1dz8O0JIw69vL\nRTXZSx7qoDiEjfuTSVDzFsFZFx5BwQE32ky8c7k5UqyplItZ7w0RT8LtpdEK\nV6fTA2dSuViipI+ae1yQqIPOzYmDsW/kOWYQih3WTk5IJYaixd8ircnUZtni\n0MCjZIbGV2XS9wvrDETOYAwU4dofjtHX508MMrS6nAbjTu4dw+AcKRIzl1Uk\nNZjn\r\n=HwjZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIARFfgccnKle9tEt8jp2++mE8DiJi1w9/dOgU6AOTx/ZAiBnu47PkhqaKXDhBYM8kme9krtpkxTk756eQQ6M4T4LIg=="}]},"maintainers":[{"email":"manatsawin+npm2@gmail.com","name":"willwill"}],"_npmUser":{"name":"willwill","email":"manatsawin@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tweetnacl-sealedbox-js_1.2.0_1566145162048_0.08770430985766109"},"_hasShrinkwrap":false}},"readme":"# libsodium Sealed Box for TweetNaCl.js\n\nThis library implements [sealed box](https://download.libsodium.org/doc/public-key_cryptography/sealed_boxes.html) for TweetNaCl.\n\nFrom libsodium's documentation:\n\n>Sealed boxes are designed to anonymously send messages to a recipient given its public key.\n>\n>Only the recipient can decrypt these messages, using its private key. While the recipient can verify the integrity of the message, it cannot verify the identity of the sender.\n>\n>A message is encrypted using an ephemeral key pair, whose secret part is destroyed right after the encryption process.\n>\n>Without knowing the secret key used for a given message, the sender cannot decrypt its own message later. And without additional data, a message cannot be correlated with the identity of its sender.\n\n## Usage\n\nThis module can be installed from npm:\n\n```sh\nnpm install tweetnacl-sealedbox-js\n```\n\nFor use in web browsers, use [sealedbox.web.js](sealedbox.web.js).\n\nThen you can use it as follow:\n\n```js\nvar tweetnacl = require('tweetnacl');\ntweetnacl.sealedbox = require('tweetnacl-sealedbox-js');\n\n// generate box key pair\nvar keyPair = tweetnacl.box.keyPair();\n\n// encrypt the message\nvar sealed = tweetnacl.sealedbox.seal(buffer, keyPair.publicKey);\n// sealed will have the size of buffer.length + tweetnacl.sealedbox.overheadLength\n\n// decrypt the message\nvar result = tweetnacl.sealedbox.open(sealed, keyPair.publicKey, keyPair.secretKey);\n```\n\nThe message buffer should be a `Uint8Array` or Node.js's `Buffer`. String encoding functions can be found in [tweetnacl-util-js](https://github.com/dchest/tweetnacl-util-js).\n\nNote that `sealedbox.open` may return `null` if the sealed box is tampered.\n\nThis library should be interoperable with libsodium's implementation of sealed box (i.e. libsodium sealed box can be opened in this library and vice-versa).\n\n## Security\n\nI'm not a security expert, so use this at your own risk.\n\nThis library does not zero out memory except for the ephemeral secret key. However, the JavaScript run time in use may not guaranteed that the memory is securely wiped.\n\n## License\n\nThis library is licensed under the [MIT license](LICENSE.txt).\n","maintainers":[{"email":"manatsawin+npm2@gmail.com","name":"willwill"}],"time":{"modified":"2023-04-12T02:20:51.062Z","created":"2017-04-06T09:17:05.099Z","0.2.0":"2017-04-06T09:17:05.099Z","1.0.0":"2017-09-21T16:30:44.432Z","1.1.0":"2017-12-17T11:11:23.427Z","1.2.0":"2019-08-18T16:19:22.223Z"},"license":"MIT","readmeFilename":"README.md","users":{"flumpus-dev":true}}