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
- 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
Install dependencies:
nvm install
npm install
npm run build-node
Open examples folder.
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
- Node 8.11.1
- Chrome 54.0
- Firefox 50.0
- bower.js
- semver.org