adminq80 / webcrypto

W3C Web Cryptography API for Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

W3C Web Cryptography API (@trust/webcrypto)

standard-readme compliant

W3C Web Cryptography API for Node.js

W3C's Web Cryptography API defines a standard interface for performing cryptographic operations in JavaScript, such as key generation, hashing, signing, and encryption. This package implements the API for Node.js, in order to support universal crypto-dependent code required by protocols such as JOSE and OpenID Connect.

Table of Contents

Security

TBD

Background

The purpose of this package is to enable development of universal JavaScript libraries that depend on the availability of cryptographic primitives in order to implement cryptographic protocols. The long term goal of the project is to encourage or provide a native, if not core Web Cryptography module.

Install

$ npm install @trust/webcrypto --save

Usage

const crypto = require('@trust/webcrypto')

Develop

Install

$ git clone git@github.com:anvilresearch/webcrypto.git
$ cd webcrypto
$ npm install

Test

$ npm test

Supported Algorithms

Algorithm name encrypt decrypt sign verify digest generateKey deriveKey deriveBits importKey exportKey wrapKey unwrapKey
RSASSA-PKCS1-v1_5
RSA-PSS _ _ _ _ _
RSA-OAEP _ _ _ _ _ _ _
ECDSA
ECDH _ _ _ _ _
AES-CTR _ _ _ _ _ _ _
AES-CBC _ _
AES-GCM _ _ _ _ _ _ _
AES-KW _ _ _ _ _
HMAC
SHA-1
SHA-256
SHA-384
SHA-512
HKDF _ _ _
PBKDF2 _ _ _

Key:

Implemented _ Need to implement

API

See W3C Web Cryptography API specification and diafygi's webcrypto-examples.

Contribute

Issues

  • please file issues :)
  • for bug reports, include relevant details such as platform, version, relevant data, and stack traces
  • be sure to check for existing issues before opening new ones
  • read the documentation before asking questions
  • it's strongly recommended to open an issue before hacking and submitting a PR
  • we reserve the right to close an issue for excessive bikeshedding

Pull requests

Policy

  • we're not presently accepting unsolicited pull requests
  • create an issue to discuss proposed features before submitting a pull request
  • create an issue to propose changes of code style or introduce new tooling
  • ensure your work is harmonious with the overall direction of the project
  • ensure your work does not duplicate existing effort
  • keep the scope compact; avoid PRs with more than one feature or fix
  • code review with maintainers is required before any merging of pull requests
  • new code must respect the style guide and overall architecture of the project
  • be prepared to defend your work

Style guide

  • ES6
  • Standard JavaScript
  • jsdocs

Code reviews

  • required before merging PRs
  • reviewers MUST run and test the code under review

Collaborating

Weekly project meeting

  • Thursdays from 1:00 PM to 2:00 Eastern US time at [TBD]
  • Join remotely with Google Hangouts

Pair programming

  • Required for new contributors
  • Work directly with one or more members of the core development team

Code of conduct

Contributors

MIT License

Copyright (c) 2016 Anvil Research, Inc.

About

W3C Web Cryptography API for Node.js

License:MIT License


Languages

Language:JavaScript 100.0%