{"_id":"tweetnacl","_rev":"30-47af07e6a1f3d7ce292c59b4ae3d99ea","name":"tweetnacl","time":{"modified":"2015-09-17T14:24:35.137Z","created":"2014-07-08T17:17:59.887Z","0.9.0":"2014-07-08T17:17:59.887Z","0.9.1":"2014-07-08T17:27:03.089Z","0.9.2":"2014-07-22T11:51:50.399Z","0.10.0":"2014-07-26T14:13:21.181Z","0.10.1":"2014-07-31T08:56:22.521Z","0.11.0":"2014-08-03T12:57:58.614Z","0.11.1":"2014-08-06T09:51:16.595Z","0.11.2":"2014-08-08T11:33:58.342Z","0.12.0":"2014-09-03T12:53:37.141Z","0.12.1":"2014-09-09T19:10:37.958Z","0.12.2":"2014-09-18T16:07:52.210Z","0.13.0":"2014-12-26T16:18:57.757Z","0.13.1":"2015-04-15T16:16:46.594Z","0.13.2":"2015-09-17T14:24:35.137Z"},"maintainers":[{"name":"dchest","email":"dmitry@codingrobots.com"}],"dist-tags":{"latest":"0.13.2"},"description":"Port of TweetNaCl cryptographic library to JavaScript","readme":"TweetNaCl.js\n============\n\nPort of [TweetNaCl](http://tweetnacl.cr.yp.to) / [NaCl](http://nacl.cr.yp.to/)\nto JavaScript for modern browsers and Node.js. Public domain.\n\n[![Build Status](https://travis-ci.org/dchest/tweetnacl-js.svg?branch=master)\n](https://travis-ci.org/dchest/tweetnacl-js)\n\n[Demo](https://dchest.github.io/tweetnacl-js/)\n\n**:warning: Beta version. The library is stable and API is frozen, however\nit has not been independently reviewed. If you can help reviewing it, please\n[contact me](mailto:dmitry@codingrobots.com).**\n\nDocumentation\n=============\n\n* [Overview](#overview)\n* [Installation](#installation)\n* [Usage](#usage)\n * [Public-key authenticated encryption (box)](#public-key-authenticated-encryption-box)\n * [Secret-key authenticated encryption (secretbox)](#secret-key-authenticated-encryption-secretbox)\n * [Scalar multiplication](#scalar-multiplication)\n * [Signatures](#signatures)\n * [Hashing](#hashing)\n * [Random bytes generation](#random-bytes-generation)\n * [Constant-time comparison](#constant-time-comparison)\n * [Utilities](#utilities)\n* [Examples](#examples)\n* [System requirements](#system-requirements)\n* [Development and testing](#development-and-testing)\n* [Contributors](#contributors)\n* [Who uses it](#who-uses-it)\n\n\nOverview\n--------\n\nThe primary goal of this project is to produce a translation of TweetNaCl to\nJavaScript which is as close as possible to the original C implementation, plus\na thin layer of idiomatic high-level API on top of it.\n\nThere are two versions, you can use either of them:\n\n* `nacl.js` is the port of TweetNaCl with minimum differences from the\n original + high-level API.\n\n* `nacl-fast.js` is like `nacl.js`, but with some functions replaced with\n faster versions.\n\n\nInstallation\n------------\n\nYou can install TweetNaCl.is via a package manager:\n\n[Bower](http://bower.io):\n\n $ bower install tweetnacl\n\n[NPM](https://www.npmjs.org/):\n\n $ npm install tweetnacl\n\nor [download source code](https://github.com/dchest/tweetnacl-js/releases).\n\n\nUsage\n------\n\nAll API functions accept and return bytes as `Uint8Array`s. If you need to\nencode or decode strings, use functions from `nacl.util` namespace.\n\n### Public-key authenticated encryption (box)\n\nImplements *curve25519-xsalsa20-poly1305*.\n\n#### nacl.box.keyPair()\n\nGenerates a new random key pair for box and returns it as an object with\n`publicKey` and `secretKey` members:\n\n {\n publicKey: ..., // Uint8Array with 32-byte public key\n secretKey: ... // Uint8Array with 32-byte secret key\n }\n\n\n#### nacl.box.keyPair.fromSecretKey(secretKey)\n\nReturns a key pair for box with public key corresponding to the given secret\nkey.\n\n#### nacl.box(message, nonce, theirPublicKey, mySecretKey)\n\nEncrypt and authenticates message using peer's public key, our secret key, and\nthe given nonce, which must be unique for each distinct message for a key pair.\n\nReturns an encrypted and authenticated message, which is\n`nacl.box.overheadLength` longer than the original message.\n\n#### nacl.box.open(box, nonce, theirPublicKey, mySecretKey)\n\nAuthenticates and decrypts the given box with peer's public key, our secret\nkey, and the given nonce.\n\nReturns the original message, or `false` if authentication fails.\n\n#### nacl.box.before(theirPublicKey, mySecretKey)\n\nReturns a precomputed shared key which can be used in `nacl.box.after` and\n`nacl.box.open.after`.\n\n#### nacl.box.after(message, nonce, sharedKey)\n\nSame as `nacl.box`, but uses a shared key precomputed with `nacl.box.before`.\n\n#### nacl.box.open.after(box, nonce, sharedKey)\n\nSame as `nacl.box.open`, but uses a shared key precomputed with `nacl.box.before`.\n\n#### nacl.box.publicKeyLength = 32\n\nLength of public key in bytes.\n\n#### nacl.box.secretKeyLength = 32\n\nLength of secret key in bytes.\n\n#### nacl.box.sharedKeyLength = 32\n\nLength of precomputed shared key in bytes.\n\n#### nacl.box.nonceLength = 24\n\nLength of nonce in bytes.\n\n#### nacl.box.overheadLength = 16\n\nLength of overhead added to box compared to original message.\n\n\n### Secret-key authenticated encryption (secretbox)\n\nImplements *xsalsa20-poly1305*.\n\n#### nacl.secretbox(message, nonce, key)\n\nEncrypt and authenticates message using the key and the nonce. The nonce must\nbe unique for each distinct message for this key.\n\nReturns an encrypted and authenticated message, which is\n`nacl.secretbox.overheadLength` longer than the original message.\n\n#### nacl.secretbox.open(box, nonce, key)\n\nAuthenticates and decrypts the given secret box using the key and the nonce.\n\nReturns the original message, or `false` if authentication fails.\n\n#### nacl.secretbox.keyLength = 32\n\nLength of key in bytes.\n\n#### nacl.secretbox.nonceLength = 24\n\nLength of nonce in bytes.\n\n#### nacl.secretbox.overheadLength = 16\n\nLength of overhead added to secret box compared to original message.\n\n\n### Scalar multiplication\n\nImplements *curve25519*.\n\n#### nacl.scalarMult(n, p)\n\nMultiplies an integer `n` by a group element `p` and returns the resulting\ngroup element.\n\n#### nacl.scalarMult.base(n)\n\nMultiplies an integer `n` by a standard group element and returns the resulting\ngroup element.\n\n#### nacl.scalarMult.scalarLength = 32\n\nLength of scalar in bytes.\n\n#### nacl.scalarMult.groupElementLength = 32\n\nLength of group element in bytes.\n\n\n### Signatures\n\nImplements [ed25519](http://ed25519.cr.yp.to).\n\n#### nacl.sign.keyPair()\n\nGenerates new random key pair for signing and returns it as an object with\n`publicKey` and `secretKey` members:\n\n {\n publicKey: ..., // Uint8Array with 32-byte public key\n secretKey: ... // Uint8Array with 64-byte secret key\n }\n\n#### nacl.sign.keyPair.fromSecretKey(secretKey)\n\nReturns a signing key pair with public key corresponding to the given\n64-byte secret key. The secret key must have been generated by\n`nacl.sign.keyPair` or `nacl.sign.keyPair.fromSeed`.\n\n#### nacl.sign.keyPair.fromSeed(seed)\n\nReturns a new signing key pair generated deterministically from a 32-byte seed.\nThe seed must contain enough entropy to be secure. This method is not\nrecommended for general use: instead, use `nacl.sign.keyPair` to generate a new\nkey pair from a random seed.\n\n#### nacl.sign(message, secretKey)\n\nSigns the message using the secret key and returns a signed message.\n\n#### nacl.sign.open(signedMessage, publicKey)\n\nVerifies the signed message and returns the message without signature.\n\nReturns `null` if verification failed.\n\n#### nacl.sign.detached(message, secretKey)\n\nSigns the message using the secret key and returns a signature.\n\n#### nacl.sign.detached.verify(message, signature, publicKey)\n\nVerifies the signature for the message and returns `true` if verification\nsucceeded or `false` if it failed.\n\n#### nacl.sign.publicKeyLength = 32\n\nLength of signing public key in bytes.\n\n#### nacl.sign.secretKeyLength = 64\n\nLength of signing secret key in bytes.\n\n#### nacl.sign.seedLength = 32\n\nLength of seed for `nacl.sign.keyPair.fromSeed` in bytes.\n\n#### nacl.sign.signatureLength = 64\n\nLength of signature in bytes.\n\n\n### Hashing\n\nImplements *SHA-512*.\n\n#### nacl.hash(message)\n\nReturns SHA-512 hash of the message.\n\n#### nacl.hash.hashLength = 64\n\nLength of hash in bytes.\n\n\n### Random bytes generation\n\n#### nacl.randomBytes(length)\n\nReturns a `Uint8Array` of the given length containing random bytes of\ncryptographic quality.\n\n**Implementation note**\n\nTweetNaCl.js uses the following methods to generate random bytes,\ndepending on the platform it runs on:\n\n* `window.crypto.getRandomValues` (WebCrypto standard)\n* `window.msCrypto.getRandomValues` (Internet Explorer 11)\n* `crypto.randomBytes` (Node.js)\n\nNote that browsers are required to throw `QuotaExceededError` exception if\nrequested `length` is more than 65536, so do not ask for more than 65536 bytes\nin *one call* (multiple calls to get as many bytes as you like are okay:\nbrowsers can generate infinite amount of random bytes without any bad\nconsequences).\n\nIf the platform doesn't provide a suitable PRNG, the following functions,\nwhich require random numbers, will throw exception:\n\n* `nacl.randomBytes`\n* `nacl.box.keyPair`\n* `nacl.sign.keyPair`\n\nOther functions are deterministic and will continue working.\n\nIf a platform you are targeting doesn't implement secure random number\ngenerator, but you somehow have a cryptographically-strong source of entropy\n(not `Math.random`!), and you know what you are doing, you can plug it into\nTweetNaCl.js like this:\n\n nacl.setPRNG(function(x, n) {\n // ... copy n random bytes into x ...\n });\n\nNote that `nacl.setPRNG` *completely replaces* internal random byte generator\nwith the one provided.\n\n\n### Constant-time comparison\n\n#### nacl.verify(x, y)\n\nCompares `x` and `y` in constant time and returns `true` if their lengths are\nnon-zero and equal, and their contents are equal.\n\nReturns `false` if either of the arguments has zero length, or arguments have\ndifferent lengths, or their contents differ.\n\n\n### Utilities\n\nEncoding/decoding functions are provided for convenience. They are correct,\nhowever their performance and wide compatibility with uncommon runtimes is not\nsomething that is considered important compared to the simplicity and size of\nimplementation. You can use third-party libraries if you need to.\n\n#### nacl.util.decodeUTF8(string)\n\nDecodes string and returns `Uint8Array` of bytes.\n\n#### nacl.util.encodeUTF8(array)\n\nEncodes `Uint8Array` or `Array` of bytes into string.\n\n#### nacl.util.decodeBase64(string)\n\nDecodes Base-64 encoded string and returns `Uint8Array` of bytes.\n\n#### nacl.util.encodeBase64(array)\n\nEncodes `Uint8Array` or `Array` of bytes into string using Base-64 encoding.\n\n\nSystem requirements\n-------------------\n\nTweetNaCl.js supports modern browsers that have a cryptographically secure\npseudorandom number generator and typed arrays, including the latest versions\nof:\n\n* Chrome\n* Firefox\n* Safari (Mac, iOS)\n* Internet Explorer 11\n\nOther systems:\n\n* Node.js (we test on 0.10 and later)\n\n\nDevelopment and testing\n------------------------\n\nInstall NPM modules needed for development:\n\n $ npm install\n\nTo build minified versions:\n\n $ npm run build\n\nTests use minified version, so make sure to rebuild it every time you change\n`nacl.js` or `nacl-fast.js`.\n\n### Testing\n\nTo run tests in Node.js:\n\n $ npm test\n\nBy default all tests described here work on `nacl.min.js`. To test other\nversions, set environment variable `NACL_SRC` to the file name you want to test.\nFor example, the following command will test fast minified version:\n\n $ NACL_SRC=nacl-fast.min.js npm test\n\nTo run full suite of tests in Node.js, including comparing outputs of\nJavaScript port to outputs of the original C version:\n\n $ npm run testall\n\nTo prepare tests for browsers:\n\n $ npm run browser\n\nand then open `test/browser/test.html` (or `test/browser/test-fast.html`) to\nrun them.\n\nTo run headless browser tests with `testling`:\n\n $ npm run testling\n\n(If you get `Error: spawn ENOENT`, install *xvfb*: `sudo apt-get install xvfb`.)\n\n### Benchmarking\n\nTo run benchmarks in Node.js:\n\n $ npm run bench\n $ NACL_SRC=nacl-fast.min.js npm run bench\n\nTo run benchmarks in a browser, open `test/benchmark/bench.html` (or\n`test/benchmark/bench-fast.html`).\n\n\nContributors\n------------\n\nJavaScript port:\n\n * [Dmitry Chestnykh](http://github.com/dchest) (ported xsalsa20, poly1305, curve25519)\n * [Devi Mandiri](https://github.com/devi) (ported curve25519, ed25519, sha512)\n\nOriginal authors of [NaCl](http://nacl.cr.yp.to), [TweetNaCl](http://tweetnacl.cr.yp.to)\nand [Poly1305-donna](https://github.com/floodyberry/poly1305-donna)\n(who are *not* responsible for any errors in this implementation):\n\n * [Daniel J. Bernstein](http://cr.yp.to/djb.html)\n * Wesley Janssen\n * [Tanja Lange](http://hyperelliptic.org/tanja)\n * [Peter Schwabe](http://www.cryptojedi.org/users/peter/)\n * [Matthew Dempsky](https://github.com/mdempsky)\n * [Andrew Moon](https://github.com/floodyberry)\n\nContributors have dedicated their work to the public domain.\n\nThis software is distributed without any warranty.\n\n\nThird-party libraries based on TweetNaCl.js\n-------------------------------------------\n\n* [forward-secrecy](https://github.com/alax/forward-secrecy) — Axolotl ratchet implementation\n* [nacl-stream](https://github.com/dchest/nacl-stream-js) - streaming encryption\n* [tweetnacl-auth-js](https://github.com/dchest/tweetnacl-auth-js) — implementation of [`crypto_auth`](http://nacl.cr.yp.to/auth.html)\n\n\nWho uses it\n-----------\n\nSome notable users of TweetNaCl.js:\n\n* [miniLock](http://minilock.io/)\n* [Stellar](https://www.stellar.org/)\n","versions":{"0.9.1":{"name":"tweetnacl","version":"0.9.1","description":"Port of TweetNaCl cryptographic library to JavaScript","main":"nacl.js","directories":{"test":"test"},"scripts":{"build":"uglifyjs nacl.js -c -m -o nacl.min.js && uglifyjs nacl-fast.js -c -m -o nacl-fast.min.js","test":"tape test/*.js | faucet","testall":"make -C test/c && tape test/*.js test/c/*.js | faucet","browser":"browserify test/browser/init.js test/*.js | uglifyjs -c -m -o test/browser/_bundle.js 2>/dev/null","browser-quick":"browserify test/browser/init.js test/*.quick.js | uglifyjs -c -m -o test/browser/_bundle-quick.js 2>/dev/null","testling":"browserify test/browser/testling_init.js test/*.js | testling | faucet","firefox":"browserify test/browser/testling_init.js test/*.js | testling -x firefox | faucet","chrome":"browserify test/browser/testling_init.js test/*.js | testling -x google-chrome | faucet","bench":"node test/benchmark/bench.js"},"testling":{"files":"test/*.js","browsers":["ie/11..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6..latest","ipad/6..latest","android-browser/latest"]},"repository":{"type":"git","url":"https://github.com/dchest/tweetnacl-js.git"},"keywords":["crypto","cryptography","curve25519","ed25519","encrypt","hash","key","nacl","poly1305","public","salsa20","signatures"],"author":{"name":"TweetNaCl-js contributors"},"license":"Public domain","bugs":{"url":"https://github.com/dchest/tweetnacl-js/issues"},"homepage":"https://dchest.github.io/tweetnacl-js","devDependencies":{"browserify":"^4.2.0","faucet":"0.0.1","tap-browser-color":"^0.1.2","tape":"^2.13.3","testling":"^1.7.0","uglify-js":"^2.4.14"},"gitHead":"84a604351a03eca9a9737594cf5b45b31122183f","_id":"tweetnacl@0.9.1","_shasum":"061d781c759b0f4ba6f8c93e71b9cba6d3e61db7","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"dchest","email":"dmitry@codingrobots.com"},"maintainers":[{"name":"dchest","email":"dmitry@codingrobots.com"}],"dist":{"shasum":"061d781c759b0f4ba6f8c93e71b9cba6d3e61db7","tarball":"http://registry.npmjs.org/tweetnacl/-/tweetnacl-0.9.1.tgz"}},"0.9.2":{"name":"tweetnacl","version":"0.9.2","description":"Port of TweetNaCl cryptographic library to JavaScript","main":"nacl.js","directories":{"test":"test"},"scripts":{"build":"uglifyjs nacl.js -c -m -o nacl.min.js && uglifyjs nacl-fast.js -c -m -o nacl-fast.min.js","test":"tape test/*.js | faucet","testall":"make -C test/c && tape test/*.js test/c/*.js | faucet","browser":"browserify test/browser/init.js test/*.js | uglifyjs -c -m -o test/browser/_bundle.js 2>/dev/null","browser-quick":"browserify test/browser/init.js test/*.quick.js | uglifyjs -c -m -o test/browser/_bundle-quick.js 2>/dev/null","testling":"browserify test/browser/testling_init.js test/*.js | testling | faucet","firefox":"browserify test/browser/testling_init.js test/*.js | testling -x firefox | faucet","chrome":"browserify test/browser/testling_init.js test/*.js | testling -x google-chrome | faucet","bench":"node test/benchmark/bench.js"},"testling":{"files":"test/*.js","browsers":["ie/11..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6..latest","ipad/6..latest","android-browser/latest"]},"repository":{"type":"git","url":"https://github.com/dchest/tweetnacl-js.git"},"keywords":["crypto","cryptography","curve25519","ed25519","encrypt","hash","key","nacl","poly1305","public","salsa20","signatures"],"author":{"name":"TweetNaCl-js contributors"},"license":"Public domain","bugs":{"url":"https://github.com/dchest/tweetnacl-js/issues"},"homepage":"https://dchest.github.io/tweetnacl-js","devDependencies":{"browserify":"^4.2.0","faucet":"0.0.1","tap-browser-color":"^0.1.2","tape":"^2.13.3","testling":"^1.7.0","uglify-js":"^2.4.14"},"gitHead":"4389a049194c4bd557f17c7910b278aaf6bbe43f","_id":"tweetnacl@0.9.2","_shasum":"ce6690698ccfa0bb0fe0b12997ec0211900add38","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"dchest","email":"dmitry@codingrobots.com"},"maintainers":[{"name":"dchest","email":"dmitry@codingrobots.com"}],"dist":{"shasum":"ce6690698ccfa0bb0fe0b12997ec0211900add38","tarball":"http://registry.npmjs.org/tweetnacl/-/tweetnacl-0.9.2.tgz"}},"0.10.0":{"name":"tweetnacl","version":"0.10.0","description":"Port of TweetNaCl cryptographic library to JavaScript","main":"nacl.js","directories":{"test":"test"},"scripts":{"build":"uglifyjs nacl.js -c -m -o nacl.min.js && uglifyjs nacl-fast.js -c -m -o nacl-fast.min.js","test":"tape test/*.js | faucet","testall":"make -C test/c && tape test/*.js test/c/*.js | faucet","browser":"browserify test/browser/init.js test/*.js | uglifyjs -c -m -o test/browser/_bundle.js 2>/dev/null","browser-quick":"browserify test/browser/init.js test/*.quick.js | uglifyjs -c -m -o test/browser/_bundle-quick.js 2>/dev/null","testling":"browserify test/browser/testling_init.js test/*.js | testling | faucet","firefox":"browserify test/browser/testling_init.js test/*.js | testling -x firefox | faucet","chrome":"browserify test/browser/testling_init.js test/*.js | testling -x google-chrome | faucet","bench":"node test/benchmark/bench.js"},"testling":{"files":"test/*.js","browsers":["ie/11..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6..latest","ipad/6..latest","android-browser/latest"]},"repository":{"type":"git","url":"https://github.com/dchest/tweetnacl-js.git"},"keywords":["crypto","cryptography","curve25519","ed25519","encrypt","hash","key","nacl","poly1305","public","salsa20","signatures"],"author":{"name":"TweetNaCl-js contributors"},"license":"Public domain","bugs":{"url":"https://github.com/dchest/tweetnacl-js/issues"},"homepage":"https://dchest.github.io/tweetnacl-js","devDependencies":{"browserify":"^4.2.0","faucet":"0.0.1","tap-browser-color":"^0.1.2","tape":"^2.13.3","testling":"^1.7.0","uglify-js":"^2.4.14"},"gitHead":"4e193660e644b3fcd23eb9404dafc4a143b07fa2","_id":"tweetnacl@0.10.0","_shasum":"4d202f18aa36f1290e09a56150776072310aeec2","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"dchest","email":"dmitry@codingrobots.com"},"maintainers":[{"name":"dchest","email":"dmitry@codingrobots.com"}],"dist":{"shasum":"4d202f18aa36f1290e09a56150776072310aeec2","tarball":"http://registry.npmjs.org/tweetnacl/-/tweetnacl-0.10.0.tgz"}},"0.10.1":{"name":"tweetnacl","version":"0.10.1","description":"Port of TweetNaCl cryptographic library to JavaScript","main":"nacl.js","directories":{"test":"test"},"scripts":{"build":"uglifyjs nacl.js -c -m -o nacl.min.js && uglifyjs nacl-fast.js -c -m -o nacl-fast.min.js","test":"tape test/*.js | faucet","testall":"make -C test/c && tape test/*.js test/c/*.js | faucet","browser":"browserify test/browser/init.js test/*.js | uglifyjs -c -m -o test/browser/_bundle.js 2>/dev/null","browser-quick":"browserify test/browser/init.js test/*.quick.js | uglifyjs -c -m -o test/browser/_bundle-quick.js 2>/dev/null","testling":"browserify test/browser/testling_init.js test/*.js | testling | faucet","firefox":"browserify test/browser/testling_init.js test/*.js | testling -x firefox | faucet","chrome":"browserify test/browser/testling_init.js test/*.js | testling -x google-chrome | faucet","bench":"node test/benchmark/bench.js"},"testling":{"files":"test/*.js","browsers":["ie/11..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6..latest","ipad/6..latest","android-browser/latest"]},"repository":{"type":"git","url":"https://github.com/dchest/tweetnacl-js.git"},"keywords":["crypto","cryptography","curve25519","ed25519","encrypt","hash","key","nacl","poly1305","public","salsa20","signatures"],"author":{"name":"TweetNaCl-js contributors"},"license":"Public domain","bugs":{"url":"https://github.com/dchest/tweetnacl-js/issues"},"homepage":"https://dchest.github.io/tweetnacl-js","devDependencies":{"browserify":"^4.2.0","faucet":"0.0.1","tap-browser-color":"^0.1.2","tape":"^2.13.3","testling":"^1.7.0","uglify-js":"^2.4.14"},"gitHead":"decc137b6c651bb4123fddf8c8afe34e86bb3701","_id":"tweetnacl@0.10.1","_shasum":"d0cb2f3d62977b1b9a9ec4060644e99419644d6d","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"dchest","email":"dmitry@codingrobots.com"},"maintainers":[{"name":"dchest","email":"dmitry@codingrobots.com"}],"dist":{"shasum":"d0cb2f3d62977b1b9a9ec4060644e99419644d6d","tarball":"http://registry.npmjs.org/tweetnacl/-/tweetnacl-0.10.1.tgz"}},"0.11.0":{"name":"tweetnacl","version":"0.11.0","description":"Port of TweetNaCl cryptographic library to JavaScript","main":"nacl.js","directories":{"test":"test"},"scripts":{"build":"uglifyjs nacl.js -c -m -o nacl.min.js && uglifyjs nacl-fast.js -c -m -o nacl-fast.min.js","test":"tape test/*.js | faucet","testall":"make -C test/c && tape test/*.js test/c/*.js | faucet","browser":"browserify test/browser/init.js test/*.js | uglifyjs -c -m -o test/browser/_bundle.js 2>/dev/null","browser-quick":"browserify test/browser/init.js test/*.quick.js | uglifyjs -c -m -o test/browser/_bundle-quick.js 2>/dev/null","testling":"browserify test/browser/testling_init.js test/*.js | testling | faucet","firefox":"browserify test/browser/testling_init.js test/*.js | testling -x firefox | faucet","chrome":"browserify test/browser/testling_init.js test/*.js | testling -x google-chrome | faucet","bench":"node test/benchmark/bench.js"},"testling":{"files":"test/*.js","browsers":["ie/11..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6..latest","ipad/6..latest","android-browser/latest"]},"repository":{"type":"git","url":"https://github.com/dchest/tweetnacl-js.git"},"keywords":["crypto","cryptography","curve25519","ed25519","encrypt","hash","key","nacl","poly1305","public","salsa20","signatures"],"author":{"name":"TweetNaCl-js contributors"},"license":"Public domain","bugs":{"url":"https://github.com/dchest/tweetnacl-js/issues"},"homepage":"https://dchest.github.io/tweetnacl-js","devDependencies":{"browserify":"^4.2.0","faucet":"0.0.1","tap-browser-color":"^0.1.2","tape":"^2.13.3","testling":"^1.7.0","uglify-js":"^2.4.14"},"gitHead":"111adafd548a97d729ae32f27d709457adddb250","_id":"tweetnacl@0.11.0","_shasum":"80e2c0f6cd02a4cd877551647957bd66dead4d8f","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"dchest","email":"dmitry@codingrobots.com"},"maintainers":[{"name":"dchest","email":"dmitry@codingrobots.com"}],"dist":{"shasum":"80e2c0f6cd02a4cd877551647957bd66dead4d8f","tarball":"http://registry.npmjs.org/tweetnacl/-/tweetnacl-0.11.0.tgz"}},"0.11.1":{"name":"tweetnacl","version":"0.11.1","description":"Port of TweetNaCl cryptographic library to JavaScript","main":"nacl.js","directories":{"test":"test"},"scripts":{"build":"uglifyjs nacl.js -c -m -o nacl.min.js && uglifyjs nacl-fast.js -c -m -o nacl-fast.min.js","test":"tape test/*.js | faucet","testall":"make -C test/c && tape test/*.js test/c/*.js | faucet","browser":"browserify test/browser/init.js test/*.js | uglifyjs -c -m -o test/browser/_bundle.js 2>/dev/null","browser-quick":"browserify test/browser/init.js test/*.quick.js | uglifyjs -c -m -o test/browser/_bundle-quick.js 2>/dev/null","testling":"browserify test/browser/testling_init.js test/*.js | testling | faucet","firefox":"browserify test/browser/testling_init.js test/*.js | testling -x firefox | faucet","chrome":"browserify test/browser/testling_init.js test/*.js | testling -x google-chrome | faucet","bench":"node test/benchmark/bench.js"},"testling":{"files":"test/*.js","browsers":["ie/11..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6..latest","ipad/6..latest","android-browser/latest"]},"repository":{"type":"git","url":"https://github.com/dchest/tweetnacl-js.git"},"keywords":["crypto","cryptography","curve25519","ed25519","encrypt","hash","key","nacl","poly1305","public","salsa20","signatures"],"author":{"name":"TweetNaCl-js contributors"},"license":"Public domain","bugs":{"url":"https://github.com/dchest/tweetnacl-js/issues"},"homepage":"https://dchest.github.io/tweetnacl-js","devDependencies":{"browserify":"^4.2.0","faucet":"0.0.1","tap-browser-color":"^0.1.2","tape":"^2.13.3","testling":"^1.7.0","uglify-js":"^2.4.14"},"gitHead":"255f22b2f91b295b47e0980d7af52db0e5c3ee03","_id":"tweetnacl@0.11.1","_shasum":"c79336c9e5b37858a05e541a7f94861ead96e2e9","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"dchest","email":"dmitry@codingrobots.com"},"maintainers":[{"name":"dchest","email":"dmitry@codingrobots.com"}],"dist":{"shasum":"c79336c9e5b37858a05e541a7f94861ead96e2e9","tarball":"http://registry.npmjs.org/tweetnacl/-/tweetnacl-0.11.1.tgz"}},"0.11.2":{"name":"tweetnacl","version":"0.11.2","description":"Port of TweetNaCl cryptographic library to JavaScript","main":"nacl.js","directories":{"test":"test"},"scripts":{"build":"uglifyjs nacl.js -c -m -o nacl.min.js && uglifyjs nacl-fast.js -c -m -o nacl-fast.min.js","test":"tape test/*.js | faucet","testall":"make -C test/c && tape test/*.js test/c/*.js | faucet","browser":"browserify test/browser/init.js test/*.js | uglifyjs -c -m -o test/browser/_bundle.js 2>/dev/null","browser-quick":"browserify test/browser/init.js test/*.quick.js | uglifyjs -c -m -o test/browser/_bundle-quick.js 2>/dev/null","testling":"browserify test/browser/testling_init.js test/*.js | testling | faucet","firefox":"browserify test/browser/testling_init.js test/*.js | testling -x firefox | faucet","chrome":"browserify test/browser/testling_init.js test/*.js | testling -x google-chrome | faucet","bench":"node test/benchmark/bench.js"},"testling":{"files":"test/*.js","browsers":["ie/11..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6..latest","ipad/6..latest","android-browser/latest"]},"repository":{"type":"git","url":"https://github.com/dchest/tweetnacl-js.git"},"keywords":["crypto","cryptography","curve25519","ed25519","encrypt","hash","key","nacl","poly1305","public","salsa20","signatures"],"author":{"name":"TweetNaCl-js contributors"},"license":"Public domain","bugs":{"url":"https://github.com/dchest/tweetnacl-js/issues"},"homepage":"https://dchest.github.io/tweetnacl-js","devDependencies":{"browserify":"^4.2.0","faucet":"0.0.1","tap-browser-color":"^0.1.2","tape":"^2.13.3","testling":"^1.7.0","uglify-js":"^2.4.14"},"gitHead":"d3597da76ed0141d08565ed329bcda7076fccfcd","_id":"tweetnacl@0.11.2","_shasum":"ed4bce52d1ddbceea3a2c504cd17d364a34f414b","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"dchest","email":"dmitry@codingrobots.com"},"maintainers":[{"name":"dchest","email":"dmitry@codingrobots.com"}],"dist":{"shasum":"ed4bce52d1ddbceea3a2c504cd17d364a34f414b","tarball":"http://registry.npmjs.org/tweetnacl/-/tweetnacl-0.11.2.tgz"}},"0.12.0":{"name":"tweetnacl","version":"0.12.0","description":"Port of TweetNaCl cryptographic library to JavaScript","main":"nacl.js","directories":{"test":"test"},"scripts":{"build":"uglifyjs nacl.js -c -m -o nacl.min.js && uglifyjs nacl-fast.js -c -m -o nacl-fast.min.js","test":"tape test/*.js | faucet","testall":"make -C test/c && tape test/*.js test/c/*.js | faucet","browser":"browserify test/browser/init.js test/*.js | uglifyjs -c -m -o test/browser/_bundle.js 2>/dev/null","browser-quick":"browserify test/browser/init.js test/*.quick.js | uglifyjs -c -m -o test/browser/_bundle-quick.js 2>/dev/null","testling":"browserify test/browser/testling_init.js test/*.js | testling | faucet","firefox":"browserify test/browser/testling_init.js test/*.js | testling -x firefox | faucet","chrome":"browserify test/browser/testling_init.js test/*.js | testling -x google-chrome | faucet","bench":"node test/benchmark/bench.js"},"testling":{"files":"test/*.js","browsers":["ie/11..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6..latest","ipad/6..latest","android-browser/latest"]},"repository":{"type":"git","url":"https://github.com/dchest/tweetnacl-js.git"},"keywords":["crypto","cryptography","curve25519","ed25519","encrypt","hash","key","nacl","poly1305","public","salsa20","signatures"],"author":{"name":"TweetNaCl-js contributors"},"license":"Public domain","bugs":{"url":"https://github.com/dchest/tweetnacl-js/issues"},"homepage":"https://dchest.github.io/tweetnacl-js","devDependencies":{"browserify":"4.x.x","faucet":"0.x.x","tap-browser-color":"0.x.x","tape":"2.x.x","testling":"1.x.x","uglify-js":"2.x.x"},"gitHead":"defcf332adb945e5659d34bf3ee13e2d325a6bce","_id":"tweetnacl@0.12.0","_shasum":"2a23aee15925799bd627fc586642d7feaea37bbf","_from":".","_npmVersion":"2.0.0-beta.0","_npmUser":{"name":"dchest","email":"dmitry@codingrobots.com"},"maintainers":[{"name":"dchest","email":"dmitry@codingrobots.com"}],"dist":{"shasum":"2a23aee15925799bd627fc586642d7feaea37bbf","tarball":"http://registry.npmjs.org/tweetnacl/-/tweetnacl-0.12.0.tgz"}},"0.12.1":{"name":"tweetnacl","version":"0.12.1","description":"Port of TweetNaCl cryptographic library to JavaScript","main":"nacl.js","directories":{"test":"test"},"scripts":{"build":"uglifyjs nacl.js -c -m -o nacl.min.js && uglifyjs nacl-fast.js -c -m -o nacl-fast.min.js","test":"tape test/*.js | faucet","testall":"make -C test/c && tape test/*.js test/c/*.js | faucet","browser":"browserify test/browser/init.js test/*.js | uglifyjs -c -m -o test/browser/_bundle.js 2>/dev/null","browser-quick":"browserify test/browser/init.js test/*.quick.js | uglifyjs -c -m -o test/browser/_bundle-quick.js 2>/dev/null","testling":"browserify test/browser/testling_init.js test/*.js | testling | faucet","firefox":"browserify test/browser/testling_init.js test/*.js | testling -x firefox | faucet","chrome":"browserify test/browser/testling_init.js test/*.js | testling -x google-chrome | faucet","bench":"node test/benchmark/bench.js"},"testling":{"files":"test/*.js","browsers":["ie/11..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6..latest","ipad/6..latest","android-browser/latest"]},"repository":{"type":"git","url":"https://github.com/dchest/tweetnacl-js.git"},"keywords":["crypto","cryptography","curve25519","ed25519","encrypt","hash","key","nacl","poly1305","public","salsa20","signatures"],"author":{"name":"TweetNaCl-js contributors"},"license":"Public domain","bugs":{"url":"https://github.com/dchest/tweetnacl-js/issues"},"homepage":"https://dchest.github.io/tweetnacl-js","devDependencies":{"browserify":"4.x.x","faucet":"0.x.x","tap-browser-color":"0.x.x","tape":"2.x.x","testling":"1.x.x","uglify-js":"2.x.x"},"gitHead":"a811228a7c40929a76ff17fc4a8da39bcc064dd6","_id":"tweetnacl@0.12.1","_shasum":"11231bac11b56f88e2dd594f283ef14d47b943e0","_from":".","_npmVersion":"2.0.0-beta.0","_npmUser":{"name":"dchest","email":"dmitry@codingrobots.com"},"maintainers":[{"name":"dchest","email":"dmitry@codingrobots.com"}],"dist":{"shasum":"11231bac11b56f88e2dd594f283ef14d47b943e0","tarball":"http://registry.npmjs.org/tweetnacl/-/tweetnacl-0.12.1.tgz"}},"0.12.2":{"name":"tweetnacl","version":"0.12.2","description":"Port of TweetNaCl cryptographic library to JavaScript","main":"nacl.js","directories":{"test":"test"},"scripts":{"build":"uglifyjs nacl.js -c -m -o nacl.min.js && uglifyjs nacl-fast.js -c -m -o nacl-fast.min.js","test":"tape test/*.js | faucet","testall":"make -C test/c && tape test/*.js test/c/*.js | faucet","browser":"browserify test/browser/init.js test/*.js | uglifyjs -c -m -o test/browser/_bundle.js 2>/dev/null","browser-quick":"browserify test/browser/init.js test/*.quick.js | uglifyjs -c -m -o test/browser/_bundle-quick.js 2>/dev/null","testling":"browserify test/browser/testling_init.js test/*.js | testling | faucet","firefox":"browserify test/browser/testling_init.js test/*.js | testling -x firefox | faucet","chrome":"browserify test/browser/testling_init.js test/*.js | testling -x google-chrome | faucet","bench":"node test/benchmark/bench.js"},"testling":{"files":"test/*.js","browsers":["ie/11..latest","chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6..latest","ipad/6..latest","android-browser/latest"]},"repository":{"type":"git","url":"https://github.com/dchest/tweetnacl-js.git"},"keywords":["crypto","cryptography","curve25519","ed25519","encrypt","hash","key","nacl","poly1305","public","salsa20","signatures"],"author":{"name":"TweetNaCl-js contributors"},"license":"Public domain","bugs":{"url":"https://github.com/dchest/tweetnacl-js/issues"},"homepage":"https://dchest.github.io/tweetnacl-js","devDependencies":{"browserify":"4.x.x","faucet":"0.x.x","tap-browser-color":"0.x.x","tape":"2.x.x","testling":"1.x.x","uglify-js":"2.x.x"},"gitHead":"8a21381d696acdc4e99c9f706f1ad23285795f79","_id":"tweetnacl@0.12.2","_shasum":"bd59f890507856fb0a1136acc3a8b44547e29ddb","_from":".","_npmVersion":"2.0.0-beta.0","_npmUser":{"name":"dchest","email":"dmitry@codingrobots.com"},"maintainers":[{"name":"dchest","email":"dmitry@codingrobots.com"}],"dist":{"shasum":"bd59f890507856fb0a1136acc3a8b44547e29ddb","tarball":"http://registry.npmjs.org/tweetnacl/-/tweetnacl-0.12.2.tgz"}},"0.13.0":{"name":"tweetnacl","version":"0.13.0","description":"Port of TweetNaCl cryptographic library to JavaScript","main":"nacl-fast.js","directories":{"test":"test"},"scripts":{"build":"uglifyjs nacl.js -c -m -o nacl.min.js && uglifyjs nacl-fast.js -c -m -o nacl-fast.min.js","test":"tape test/*.js | faucet","testall":"make -C test/c && tape test/*.js test/c/*.js | faucet","browser":"browserify test/browser/init.js test/*.js | uglifyjs -c -m -o test/browser/_bundle.js 2>/dev/null","browser-quick":"browserify test/browser/init.js test/*.quick.js | uglifyjs -c -m -o test/browser/_bundle-quick.js 2>/dev/null","testling":"browserify test/browser/testling_init.js test/*.js | testling | faucet","firefox":"browserify test/browser/testling_init.js test/*.js | testling -x firefox | faucet","chrome":"browserify test/browser/testling_init.js test/*.js | testling -x google-chrome | faucet","bench":"node test/benchmark/bench.js"},"testling":{"files":"test/*.js","browsers":["chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6..latest","ipad/6..latest","android-browser/latest"]},"repository":{"type":"git","url":"https://github.com/dchest/tweetnacl-js.git"},"keywords":["crypto","cryptography","curve25519","ed25519","encrypt","hash","key","nacl","poly1305","public","salsa20","signatures"],"author":{"name":"TweetNaCl-js contributors"},"license":"Public domain","bugs":{"url":"https://github.com/dchest/tweetnacl-js/issues"},"homepage":"https://dchest.github.io/tweetnacl-js","devDependencies":{"browserify":"4.x.x","faucet":"0.x.x","tap-browser-color":"0.x.x","tape":"2.x.x","testling":"1.x.x","uglify-js":"2.x.x"},"gitHead":"b40db2cad07ceb9285ca616afc84318b9b751770","_id":"tweetnacl@0.13.0","_shasum":"884ce855c8f2bb03bfcbe9c7e82d854229fbee67","_from":".","_npmVersion":"2.1.14","_nodeVersion":"0.10.35","_npmUser":{"name":"dchest","email":"dmitry@codingrobots.com"},"maintainers":[{"name":"dchest","email":"dmitry@codingrobots.com"}],"dist":{"shasum":"884ce855c8f2bb03bfcbe9c7e82d854229fbee67","tarball":"http://registry.npmjs.org/tweetnacl/-/tweetnacl-0.13.0.tgz"}},"0.13.1":{"name":"tweetnacl","version":"0.13.1","description":"Port of TweetNaCl cryptographic library to JavaScript","main":"nacl-fast.js","directories":{"test":"test"},"scripts":{"build":"uglifyjs nacl.js -c -m -o nacl.min.js && uglifyjs nacl-fast.js -c -m -o nacl-fast.min.js","test":"tape test/*.js | faucet","testall":"make -C test/c && tape test/*.js test/c/*.js | faucet","browser":"browserify test/browser/init.js test/*.js | uglifyjs -c -m -o test/browser/_bundle.js 2>/dev/null","browser-quick":"browserify test/browser/init.js test/*.quick.js | uglifyjs -c -m -o test/browser/_bundle-quick.js 2>/dev/null","testling":"browserify test/browser/testling_init.js test/*.js | testling | faucet","firefox":"browserify test/browser/testling_init.js test/*.js | testling -x firefox | faucet","chrome":"browserify test/browser/testling_init.js test/*.js | testling -x google-chrome | faucet","bench":"node test/benchmark/bench.js"},"testling":{"files":"test/*.js","browsers":["chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6..latest","ipad/6..latest","android-browser/latest"]},"repository":{"type":"git","url":"https://github.com/dchest/tweetnacl-js.git"},"keywords":["crypto","cryptography","curve25519","ed25519","encrypt","hash","key","nacl","poly1305","public","salsa20","signatures"],"author":{"name":"TweetNaCl-js contributors"},"license":"Public domain","bugs":{"url":"https://github.com/dchest/tweetnacl-js/issues"},"homepage":"https://dchest.github.io/tweetnacl-js","devDependencies":{"browserify":"4.x.x","faucet":"0.x.x","tap-browser-color":"0.x.x","tape":"2.x.x","testling":"1.x.x","uglify-js":"2.x.x"},"browser":{"buffer":false,"crypto":false},"gitHead":"abfbce7c68c8ad0b3b8a90b769e1f67885237aac","_id":"tweetnacl@0.13.1","_shasum":"568d436b13aeb7e32adba6e16df9173008a581ad","_from":".","_npmVersion":"2.7.6","_nodeVersion":"0.12.1","_npmUser":{"name":"dchest","email":"dmitry@codingrobots.com"},"dist":{"shasum":"568d436b13aeb7e32adba6e16df9173008a581ad","tarball":"http://registry.npmjs.org/tweetnacl/-/tweetnacl-0.13.1.tgz"},"maintainers":[{"name":"dchest","email":"dmitry@codingrobots.com"}]},"0.13.2":{"name":"tweetnacl","version":"0.13.2","description":"Port of TweetNaCl cryptographic library to JavaScript","main":"nacl-fast.js","directories":{"test":"test"},"scripts":{"build":"uglifyjs nacl.js -c -m -o nacl.min.js && uglifyjs nacl-fast.js -c -m -o nacl-fast.min.js","test":"tape test/*.js | faucet","testall":"make -C test/c && tape test/*.js test/c/*.js | faucet","browser":"browserify test/browser/init.js test/*.js | uglifyjs -c -m -o test/browser/_bundle.js 2>/dev/null","browser-quick":"browserify test/browser/init.js test/*.quick.js | uglifyjs -c -m -o test/browser/_bundle-quick.js 2>/dev/null","testling":"browserify test/browser/testling_init.js test/*.js | testling | faucet","firefox":"browserify test/browser/testling_init.js test/*.js | testling -x firefox | faucet","chrome":"browserify test/browser/testling_init.js test/*.js | testling -x google-chrome | faucet","bench":"node test/benchmark/bench.js","lint":"eslint nacl.js nacl-fast.js test/*.js test/benchmark/*.js"},"testling":{"files":"test/*.js","browsers":["chrome/22..latest","firefox/16..latest","safari/latest","opera/11.0..latest","iphone/6..latest","ipad/6..latest","android-browser/latest"]},"repository":{"type":"git","url":"git+https://github.com/dchest/tweetnacl-js.git"},"keywords":["crypto","cryptography","curve25519","ed25519","encrypt","hash","key","nacl","poly1305","public","salsa20","signatures"],"author":{"name":"TweetNaCl-js contributors"},"license":"CC0-1.0","bugs":{"url":"https://github.com/dchest/tweetnacl-js/issues"},"homepage":"https://dchest.github.io/tweetnacl-js","devDependencies":{"browserify":"^10.1.3","eslint":"^1.4.3","faucet":"0.0.1","tap-browser-color":"^0.1.2","tape":"^4.0.0","testling":"^1.7.1","uglify-js":"^2.4.21"},"browser":{"buffer":false,"crypto":false},"gitHead":"f093f0c34fbab5caf51f3ed9a48149c37041abb3","_id":"tweetnacl@0.13.2","_shasum":"453161770469d45cd266c36404e2bc99a8fa9944","_from":".","_npmVersion":"2.12.1","_nodeVersion":"0.12.7","_npmUser":{"name":"dchest","email":"dmitry@codingrobots.com"},"dist":{"shasum":"453161770469d45cd266c36404e2bc99a8fa9944","tarball":"http://registry.npmjs.org/tweetnacl/-/tweetnacl-0.13.2.tgz"},"maintainers":[{"name":"dchest","email":"dmitry@codingrobots.com"}]}},"homepage":"https://dchest.github.io/tweetnacl-js","keywords":["crypto","cryptography","curve25519","ed25519","encrypt","hash","key","nacl","poly1305","public","salsa20","signatures"],"repository":{"type":"git","url":"git+https://github.com/dchest/tweetnacl-js.git"},"author":{"name":"TweetNaCl-js contributors"},"bugs":{"url":"https://github.com/dchest/tweetnacl-js/issues"},"license":"CC0-1.0","readmeFilename":"README.md","users":{"dchest":true,"tcrowe":true,"antanst":true},"_attachments":{},"_etag":"\"27FNMOBI16BCGWHN791EITERJ\""}