{"name":"@trust/webcrypto","version":"0.4.0","description":"WebCrypto API for Node.js","main":"src/index.js","directories":{"test":"test"},"scripts":{"test":"mocha -w","jsdoc":"jsdoc -c jsdoc.json -r"},"repository":{"type":"git","url":"git+ssh://git@github.com/anvilresearch/webcrypto.git"},"keywords":["WebCrypto"],"author":{"name":"Anvil Research, Inc."},"license":"MIT","bugs":{"url":"https://github.com/anvilresearch/webcrypto/issues"},"homepage":"https://github.com/anvilresearch/webcrypto#README","dependencies":{"@trust/keyto":"^0.3.0","base64url":"^2.0.0","node-rsa":"^0.4.0","text-encoding":"^0.6.1"},"devDependencies":{"chai":"^3.5.0","jsdoc":"^3.4.3","mocha":"^3.2.0"},"gitHead":"fd877fbddf2b1ab39cfd8533951e3aa6431765a6","_id":"@trust/webcrypto@0.4.0","_shasum":"cc8712ca89a7e71d353fcefb66b2707a679cf635","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.0","_npmUser":{"name":"thelunararmy","email":"jcbailey1991@gmail.com"},"dist":{"shasum":"cc8712ca89a7e71d353fcefb66b2707a679cf635","tarball":"http://registry-npm.ywwl.com/@trust/webcrypto/download/@trust/webcrypto-0.4.0.tgz","integrity":"sha512-D+Wu03QaOJQ+tds8v+xPIrThIWXhPnCQnqvOjTvCkUTRgU2zsb+2Bb7oN7W40I/kHOA7aKBprljqQYjlDAmbcQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBey8tj/Mvs6O4Wi8I0rV9Xcu9OSemONd4X5okEvnJ4sAiBMvZvhnbVvNsaLF2QeyTKyyQ8shrrckjBVjqHoatTjQA=="}],"size":39054,"noattachment":false,"key":"/@trust/webcrypto/-/@trust/webcrypto-0.4.0.tgz"},"maintainers":[{"email":"budea_ionut@yahoo.com","name":"ibudea"},{"email":"jcbailey1991@gmail.com","name":"thelunararmy"},{"email":"dzagidulin@gmail.com","name":"codenamedmitri"},{"email":"cornel.stefanache@gmail.com","name":"cstefanache"},{"email":"keeley.erhardt@gmail.com","name":"keelerh"},{"email":"greg@gryphus.io","name":"eternaldeiwos"},{"email":"smith@anvil.io","name":"christiansmith"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webcrypto-0.4.0.tgz_1503002034537_0.6857325481250882"},"readme":"# W3C Web Cryptography API _(@trust/webcrypto)_\n\n[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![Build Status](https://travis-ci.org/anvilresearch/webcrypto.svg?branch=master)](https://travis-ci.org/anvilresearch/webcrypto)\n\n> W3C Web Cryptography API for Node.js\n\nW3C's [Web Cryptography API][webcrypto] defines a standard interface for performing\ncryptographic operations in JavaScript, such as key generation, hashing, signing, and\nencryption. This package implements the API for Node.js, in order to support universal\ncrypto-dependent code required by protocols such as [JOSE][jose] and\n[OpenID Connect][oidc].\n\n[webcrypto]: https://www.w3.org/TR/WebCryptoAPI/\n[jose]: https://datatracker.ietf.org/wg/jose/documents/\n[oidc]: http://openid.net/connect/\n\n## Table of Contents\n\n* [Security](#security)\n* [Background](#background)\n* [Install](#install)\n* [Usage](#usage)\n* [Develop](#develop)\n* [Supported Algorithms](#supported-algorithms)\n* [API](#api)\n* [Contribute](#contribute)\n* [MIT License](#mit-license)\n\n## Security\n\nTBD\n\n## Background\n\nThe purpose of this package is to enable development of universal JavaScript\nlibraries that depend on the availability of cryptographic primitives in order\nto implement cryptographic protocols. The long term goal of the project is to\nencourage or provide a [native, if not core][wtf] Web Cryptography module.\n\n[wtf]: https://github.com/nodejs/node/issues/2833\n\n## Install\n\n`@trust/webcrypto` requires recent versions of [node][node] and [npm][npm] to run. For key generation operations, it also requires [OpenSSL][openssl] to be installed on the system.\n\n[node]: https://nodejs.org\n[npm]: https://www.npmjs.com/\n[openssl]: https://www.openssl.org/\n\n\n```bash\n$ npm install @trust/webcrypto --save\n```\n\n## Usage\n\n```javascript\nconst crypto = require('@trust/webcrypto')\n```\n\n## Develop\n\n### Install\n\n```bash\n$ git clone git@github.com:anvilresearch/webcrypto.git\n$ cd webcrypto\n$ npm install\n```\n\n### Test\n\n```bash\n$ npm test\n```\n\n## Supported Algorithms\n\n| Algorithm name | encrypt | decrypt | sign | verify | digest | generateKey | deriveKey | deriveBits | importKey | exportKey | wrapKey | unwrapKey |\n|------------------|---|---|---|---|---|---|---|---|---|---|---|---|\n|RSASSA-PKCS1-v1_5 |   |   | ✔ | ✔ |   | ✔ |   |   | ✔ | ✔ |   |   |\n|RSA-PSS           |   |   | ✔ | ✔ |   | ✔ |   |   | ✔ | ✔ |   |   |\n|RSA-OAEP          | ✔ | ✔ |   |   |   | ✔ |   |   | ✔ | ✔ | ✔ | ✔ |\n|ECDSA             |   |   | ⚐ | ⚐ |   | ⚐ |   |   | ✔ | ✔ |   |   |\n|EDDSA             |   |   | ⚐ | ⚐ |   | ⚐ |   |   | ✔ | ✔ |   |   |\n|ECDH              |   |   |   |   |   | _ | _ | _ | _ | _ |   |   |\n|AES-CTR           | ⚐ | ⚐ |   |   |   | ✔ |   |   | ✔ | ✔ | ✔ | ✔ |\n|AES-CBC           | ✔ | ✔ |   |   |   | ✔ |   |   | ✔ | ✔ | ✔ | ✔ |\n|AES-GCM           | ✔ | ✔ |   |   |   | ✔ |   |   | ✔ | ✔ | ✔ | ✔ |\n|AES-KW            |   |   |   |   |   | ✔ |   |   | ✔ | ✔ | ✔ | ✔ |\n|HMAC              |   |   | ✔ | ✔ |   | ✔ |   |   | ✔ | ✔ |   |   |\n|SHA-1             |   |   |   |   | ✔ |   |   |   |   |   |   |   |\n|SHA-256           |   |   |   |   | ✔ |   |   |   |   |   |   |   |\n|SHA-384           |   |   |   |   | ✔ |   |   |   |   |   |   |   |\n|SHA-512           |   |   |   |   | ✔ |   |   |   |   |   |   |   |\n|HKDF              |   |   |   |   |   |   | _ | _ | _ |   |   |   |\n|PBKDF2            |   |   |   |   |   |   | _ | _ | _ |   |   |   |\n\nKey:\n\n` ✔ ` Implemented\n` _ ` Currently not implemented\n` ⚐ ` Partially implemented, only certain paramaters supported.\n\n## Partial Support\nOnly the following paramaters are supported for the corresponding algorithm.\n\n| Algorithm name | Supported paramater |\n| -------------- | ------------------- |\n| ECDSA          | `K-256 (secp256k1)`, `P-256`, `P-384`, `P-512` |\n| EDDSA          | `ed25519`           | \n| AES-CTR        | `sha-1`             |\n\n\n## API\n\nSee [W3C Web Cryptography API][webcrypto] specification and diafygi's [webcrypto-examples][examples].\n\n[examples]: https://github.com/diafygi/webcrypto-examples\n\n## Contribute\n\n### Issues\n\n* Please file [issues](https://github.com/anvilresearch/webcrypto/issues) :)\n* When writing a bug report, include relevant details such as platform, version, relevant data, and stack traces\n* Ensure to check for existing issues before opening new ones\n* Read the documentation before asking questions\n* It is strongly recommended to open an issue before hacking and submitting a PR\n* We reserve the right to close an issue for excessive bikeshedding\n\n### Pull requests\n\n#### Policy\n\n* We're not presently accepting *unsolicited* pull requests\n* Create an issue to discuss proposed features before submitting a pull request\n* Create an issue to propose changes of code style or introduce new tooling\n* Ensure your work is harmonious with the overall direction of the project\n* Ensure your work does not duplicate existing effort\n* Keep the scope compact; avoid PRs with more than one feature or fix\n* Code review with maintainers is required before any merging of pull requests\n* New code must respect the style guide and overall architecture of the project\n* Be prepared to defend your work\n\n#### Style guide\n\n* ES6\n* Standard JavaScript\n* jsdocs\n\n#### Code reviews\n\n* required before merging PRs\n* reviewers MUST run and test the code under review\n\n### Collaborating\n\n#### Weekly project meeting\n\n* Thursdays from 1:00 PM to 2:00 Eastern US time at [TBD]\n* Join remotely with Google Hangouts\n\n#### Pair programming\n\n* Required for new contributors\n* Work directly with one or more members of the core development team\n\n### Code of conduct\n\n* @trust/webcrypto follows the [Contributor Covenant](http://contributor-covenant.org/version/1/3/0/) Code of Conduct.\n\n### Contributors\n\n* Christian Smith [@christiansmith](https://github.com/christiansmith)\n* Dmitri Zagidulin [@dmitrizagidulin](https://github.com/dmitrizagidulin)\n* Greg Linklater [@EternalDeiwos](https://github.com/EternalDeiwos)\n* JC Bailey [@thelunararmy](https://github.com/thelunararmy)\n* Ioan Budea [@johnny90](https://github.com/johnny90)\n* Abdulrahman Alotaibi [@adminq80](https://github.com/adminq80)\n* Linus Unnebäck [@LinusU](https://github.com/LinusU)\n* Len Boyette [@kevlened](https://github.com/kevlened)\n* Tom Bonner [@Glitch0011](https://github.com/Glitch0011)\n## MIT License\n\nCopyright (c) 2016 Anvil Research, Inc.\n","publish_time":1503002034910,"_cnpm_publish_time":1503002034910,"dist-tags":{"latest":"0.9.2"}}