GT2/GT2-Android/node_modules/tweetnacl/package.json

123 lines
17 KiB
JSON
Raw Normal View History

{
"_args": [
[
{
"raw": "tweetnacl@~0.14.0",
"scope": null,
"escapedName": "tweetnacl",
"name": "tweetnacl",
"rawSpec": "~0.14.0",
"spec": ">=0.14.0 <0.15.0",
"type": "range"
},
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/sshpk"
]
],
"_from": "tweetnacl@>=0.14.0 <0.15.0",
"_id": "tweetnacl@0.14.5",
"_inCache": true,
"_location": "/tweetnacl",
"_nodeVersion": "7.0.0",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/tweetnacl-0.14.5.tgz_1481627515097_0.015130913350731134"
},
"_npmUser": {
"name": "dchest",
"email": "dmitry@codingrobots.com"
},
"_npmVersion": "3.10.8",
"_phantomChildren": {},
"_requested": {
"raw": "tweetnacl@~0.14.0",
"scope": null,
"escapedName": "tweetnacl",
"name": "tweetnacl",
"rawSpec": "~0.14.0",
"spec": ">=0.14.0 <0.15.0",
"type": "range"
},
"_requiredBy": [
"/bcrypt-pbkdf",
"/sshpk"
],
"_resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
"_shasum": "5ae68177f192d4456269d108afa93ff8743f4f64",
"_shrinkwrap": null,
"_spec": "tweetnacl@~0.14.0",
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/sshpk",
"author": {
"name": "TweetNaCl-js contributors"
},
"browser": {
"buffer": false,
"crypto": false
},
"bugs": {
"url": "https://github.com/dchest/tweetnacl-js/issues"
},
"dependencies": {},
"description": "Port of TweetNaCl cryptographic library to JavaScript",
"devDependencies": {
"browserify": "^13.0.0",
"eslint": "^2.2.0",
"faucet": "^0.0.1",
"tap-browser-color": "^0.1.2",
"tape": "^4.4.0",
"tape-run": "^2.1.3",
"tweetnacl-util": "^0.13.3",
"uglify-js": "^2.6.1"
},
"directories": {
"test": "test"
},
"dist": {
"shasum": "5ae68177f192d4456269d108afa93ff8743f4f64",
"tarball": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz"
},
"gitHead": "cce829e473b1ae299a9373b5140c713ee88f577f",
"homepage": "https://tweetnacl.js.org",
"keywords": [
"crypto",
"cryptography",
"curve25519",
"ed25519",
"encrypt",
"hash",
"key",
"nacl",
"poly1305",
"public",
"salsa20",
"signatures"
],
"license": "Unlicense",
"main": "nacl-fast.js",
"maintainers": [
{
"name": "dchest",
"email": "dmitry@codingrobots.com"
}
],
"name": "tweetnacl",
"optionalDependencies": {},
"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\nDemo: <https://tweetnacl.js.org>\n\n**:warning: The library is stable and API is frozen, however it has not been\nindependently reviewed. If you can help reviewing it, please [contact\nme](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* [System requirements](#system-requirements)\n* [Development and testing](#development-and-testing)\n* [Benchmarks](#benchmarks)\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.js 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\n<https://github.com/dchest/tweetnacl-util-js> or one of the more robust codec\npackages.\n\nIn Node.js v4 and later `Buffer` objects are backed by `Uint8Array`s, so you\ncan freely pass them to TweetNaCl.js functions as arguments. The returned\nobjects are still `Uint8Array`s, so if you need `Buffer`s, you'll have to\nconvert them manually; make sure to convert using copying: `new Buffer(array)`,\ninstead of sharing: `new Buffer(array.buffer)`, because some functions return\nsubarrays of their buffers.\n\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
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/dchest/tweetnacl-js.git"
},
"scripts": {
"bench": "node test/benchmark/bench.js",
"build": "uglifyjs nacl.js -c -m -o nacl.min.js && uglifyjs nacl-fast.js -c -m -o nacl-fast.min.js",
"build-test-browser": "browserify test/browser/init.js test/*.js | uglifyjs -c -m -o test/browser/_bundle.js 2>/dev/null && browserify test/browser/init.js test/*.quick.js | uglifyjs -c -m -o test/browser/_bundle-quick.js 2>/dev/null",
"lint": "eslint nacl.js nacl-fast.js test/*.js test/benchmark/*.js",
"test": "npm run test-node-all && npm run test-browser",
"test-browser": "NACL_SRC=${NACL_SRC:='nacl.min.js'} && npm run build-test-browser && cat $NACL_SRC test/browser/_bundle.js | tape-run | faucet",
"test-node": "tape test/*.js | faucet",
"test-node-all": "make -C test/c && tape test/*.js test/c/*.js | faucet"
},
"types": "nacl.d.ts",
"version": "0.14.5"
}