Skip to content

boldt/WebCrypto.js

Repository files navigation

WebCrypto.js

WebCrypto.js is a simple JavaScript library for the Web Cryptography API.

In an browser environment, this library uses the raw Web Cryptography API. In a node environment, this library uses corresponding node-webcrypto-ossl.

Hint: work is still in progress

Supported Crypto

  • SHA-1
  • SHA-256
  • SHA-384
  • SHA-512
  • AES-CBC
  • RSA-OAEP
  • ECDH
  • ECDSA
  • AES-CTR
  • AES-CMAC
  • AES-GCM
  • AES-KW
  • AES-CFB
  • HMAC
  • RSASSA-PKCS1-v1_5
  • RSA-PSS
  • PBKDF2
  • DH

Examples

Install dependencies:

nvm install
npm install

Browser

npm run build-node

Open examples folder.

Node

npm run build-node

Run examples:

node dist/node/sha1.js
node dist/node/aes-cbc.js
node dist/node/aes-cbc-2.js
node dist/node/ecdsa.js
node dist/node/rsa-oaep.js
node dist/node/ecdh.js

Supported Environments

  • Node 8.11.1
  • Chrome 54.0
  • Firefox 50.0

Examples

Links

TODO

  • bower.js
  • semver.org

About

A simple wrapper for the Web Cryptography API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published