{"name":"sodium-javascript","version":"0.7.0","description":"WIP - a pure javascript version of sodium-native","main":"index.js","dependencies":{"blake2b":"^2.1.1","chacha20-universal":"^1.0.4","nanoassert":"^2.0.0","sha256-universal":"^1.1.0","sha512-universal":"^1.1.0","siphash24":"^1.0.1","xsalsa20":"^1.0.0"},"devDependencies":{"browserify":"^16.5.1","sodium-test":"^0.10.0","standard":"^14.3.4","tape-run":"^7.0.0"},"standard":{"ignore":["/internal/**/*.js"]},"browser":{"crypto":false},"react-native":{"crypto":"crypto"},"scripts":{"pretest":"standard","test":"node test.js","test-browser":"browserify test.js | tape-run"},"repository":{"type":"git","url":"git+https://github.com/sodium-friends/sodium-javascript.git"},"contributors":[{"name":"Christophe Diederichs","email":"chm-diederichs@hyperdivision.dk"},{"name":"Emil Bay","email":"github@tixz.dk","url":"http://bayes.dk"},{"name":"Mathias Buus","email":"mathiasbuus@gmail.com","url":"https://mafinto.sh"}],"license":"MIT","bugs":{"url":"https://github.com/sodium-friends/sodium-javascript/issues"},"homepage":"https://github.com/sodium-friends/sodium-javascript#readme","gitHead":"97200f90da4edbaffe57f469b44d44994081f0cf","_id":"sodium-javascript@0.7.0","_nodeVersion":"12.18.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-eMZntHHFS8fy/Z/xPRC0I/cGm7IEHEnslCGrlAZYhjwoCKJdVxHEln5eEMv/FXxg1WEsth7MEt11BNUCvUM0ug==","shasum":"820d51f96d75d610df46bae16cf214b36d82217c","tarball":"http://registry-npm.ywwl.com/sodium-javascript/download/sodium-javascript-0.7.0.tgz","fileCount":27,"unpackedSize":72123,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfafTWCRA9TVsSAnZWagAAl5oP/03+/BAO8Z7L+iwxJKrx\n46JU0yN/5pzaMjwiiBRdbQLBxDrucX/dzIp9gnI4r/z+8w4DwB08AW/k49zW\nEUMDjZqflVA4S30KKej5az++kMBwTzHxJKx3Y85H62kyFeYmQ0z5N1v9MpX9\nZoj5pUKQrtkBd2Vk2DME29zSTlQUT4C/N8RPK8YQCgl9aBbWbwCAqzCZdr0s\niSDu+yfodU+aRryNUO8rN61HhAerRboBKERmZOAMlSvf+xaozyVyL1uy4Bvk\nu8TCCuqPlEjMg2iIWZ+ZDQ43WzBYNtgKl0APwI1DbdH6GR5VZoCOAJLP37WV\nGKfkrnNT8vxSOWrE49ttb+lRSt50ZCrSN7FSmev660O5fDA8wxKZe4tqiQMN\ncR4ou1qz9iB3yDnD5Mt3Ai103+Wk8kH4BJbZC5ut//QNmZrWrumfgt4XNX2V\naSgw8gHhhR/MAdjvwvhx738IX5KpTzKUUDYkDrO0EmU+evcYcGnCP1gy1Q+j\nWcCrNxdE7x00FagpX7JnAHhlwroTEUb4xARfWzmPdI8Q40VWIwJX9dXTYmUh\n/m73NswXj/KiFjwc4zafuKdlGK2Jucqg7PQsT4St55b9k36S/FymOHVH8Jwo\nxf73u1JW0/gcx64Gq3Jr8xR4KL1VL+CDLlZgEyr5aSkuq26Liv0c2VQ7j7O6\nOVII\r\n=tUlZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBBDSDDOccN8Me6MY/bzo3m6tPjjC6KuGiNj825mOac3AiAd2SN/ZBjLVDsUgcXpPCKuyY+sbRhG6WiE1jb6UkJNrQ=="}],"size":16443,"noattachment":false,"key":"/sodium-javascript/-/sodium-javascript-0.7.0.tgz"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"emilbayes","email":"github@tixz.dk"},{"name":"chm-diederichs","email":"christophe.diederichs@googlemail.com"}],"_npmUser":{"name":"chm-diederichs","email":"christophe.diederichs@googlemail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sodium-javascript_0.7.0_1600779478395_0.46289229704299495"},"_hasShrinkwrap":false,"readme":"# `sodium-javascript`\n\n[![Build Status](https://travis-ci.org/sodium-friends/sodium-javascript.svg?branch=master)](https://travis-ci.org/sodium-friends/sodium-javascript)\n\n> WIP - a pure javascript version of [sodium-native](https://github.com/sodium-friends/sodium-native).\nBased on tweetnacl\n\n## Usage\n\n``` js\nconst sodium = require('sodium-javascript')\n\nconst key = Buffer.alloc(sodium.crypto_secretbox_KEYBYTES)\nconst nonce = Buffer.alloc(sodium.crypto_secretbox_NONCEBYTES)\n\nsodium.randombytes_buf(key)\nsodium.randombytes_buf(nonce)\n\nconst message = Buffer.from('Hello, World!')\nconst cipher = Buffer.alloc(message.length + sodium.crypto_secretbox_MACBYTES)\n\nsodium.crypto_secretbox_easy(cipher, message, nonce, key)\n\nconsole.log('Encrypted:', cipher)\n\nconst plainText = Buffer.alloc(cipher.length - sodium.crypto_secretbox_MACBYTES)\n\nsodium.crypto_secretbox_open_easy(plainText, cipher, nonce, key)\n\nconsole.log('Plaintext:', plainText.toString())\n```\n\n## API\n\nSee [sodium-native](https://github.com/sodium-friends/sodium-native).\nThis is a work in progress so not all functions are implemented yet.\n\nThis module is organised into individual submodules which can be required\nindependently for smaller bundles in the browser. To leverage automatic\nswitching between `sodium-javascript` and `sodium-native`, see\n[`sodium-universal`](https://github.com/sodium-friends/sodium-universal).\n\n## Install\n\n```\nnpm install sodium-javascript\n```\n\n## License\n\n[MIT](LICENSE)\n","publish_time":1600779478509,"_cnpm_publish_time":1600779478509,"dist-tags":{"latest":"0.8.0"}}