{"name":"sodium-javascript","version":"0.6.3","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.0.1","sha512-universal":"^1.0.1","siphash24":"^1.0.1","xsalsa20":"^1.0.0"},"devDependencies":{"browserify":"^16.5.1","sodium-test":"^0.9.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":"ce5ac41ecd6393872878338b4b221e6b4d1713b5","_id":"sodium-javascript@0.6.3","_nodeVersion":"12.18.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Z+Xi02nBReXOwXKD8/9auRsh02swxgZlmen0vyoOE8cQTzzPXr4jHx+D7JUgc4S2j7sNza9k86xFLmQX/gEIWA==","shasum":"f1d0f4a7cea9d21b9142b8240a8d26c90cffbdc8","tarball":"http://registry-npm.ywwl.com/sodium-javascript/download/sodium-javascript-0.6.3.tgz","fileCount":26,"unpackedSize":63603,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfY20KCRA9TVsSAnZWagAAfzIQAIdxln0GAObefhfaKiCl\ncbdvgj86jvukniGZro86GIgJ/iBO74JT13qgmESDaJHPQCF3LMlE0xeciI/H\nL5pCx6PnBQR7nCc0baEvTN0g/IR9xjParyMSJm/S+sYJQdMvJgboFu6sF8xD\npwNMBeAjZSY4b5hNnw+LmIsz7JLBgvMKNLflIVqCVoL1uIXvspa7j3zCjwrK\niCSCYUFjeiT2V2jIvx/OTNG23l9XzsnIFd103UFocacF0hoZ5eps2+UTNO8b\nfKLuw2ttjN5K3Pwaaj5VqHMajwRp2GMkVDr2bt/WJn0hgXKOTh0DjEhSa60Y\nwXvSgjaq5CHwGdy9x0DcXMGkz4mBgpEfWnRw99xG+gwVDN6U94RkOuQv3fjr\nehGeMAZrL9KweXrLM6t2OlcgUbD2Og6eQCrkhTHeT8qZBDpqtuxzJM39Mfx4\nERV8ReHNeKaTzVGNxBZ/yJC+calGDBdFJoQuHa0ZMosIIAfQX1HfV/hcmX1q\nxJtKvS0x7c4eG8HayohonCeoC8bL/D1w+GZPPTga8/pyPO2qFe8Q0XvDmzT5\nFuaLN9WvhOMooY0/7NPUp2IKZ8XoBp3lF1jq3ZKUWX4SsQuIKfZCYFynVSXJ\nRj1mp9zEOPkmEOzIL7ioSN37ueqYKsJ9x8NeUJTQaFnwafNWL5Wh0HT9uGs4\nn4b1\r\n=OPV+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAKoka9pJsBVMvjOr5QHo+Czxmn02mGkMJ2qSJa0UoLVAiAV0aI0w1uP2KI72ONohhFge2FRuPZJd2s2wuP0OmrMqA=="}],"size":14804,"noattachment":false,"key":"/sodium-javascript/-/sodium-javascript-0.6.3.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.6.3_1600351497535_0.5446729698783144"},"_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":1600351497667,"_cnpm_publish_time":1600351497667,"dist-tags":{"latest":"0.8.0"}}