webcrypto-local is a cross platform service that provides access to PKCS#11 implementations over a protocol we call webcrypto-socket.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
errors
examples/worker
json
src
test
.gitignore
.npmignore
DEBUG_ISSUE.md
HOW_TO_ADD_NEW_TOKEN.md
LICENSE.md
README.md
SECURITY.md
index.d.ts
package-lock.json
package.json
rollup.config.js
rollup.config.lib.js
rollup.config.node.js
tsconfig.json
tslint.json

README.md

webcrypto-local

webcrypto-local is a cross platform service that provides access to PKCS#11 implementations over a ProtoBuf based protocol we call webcrypto-socket. It provides for message confidentiality and integrity via 2key-ratchet and implements a security policy mechanism that allows the user to approve which peers can interact with it.

webcrypto-socket

Build

npm run build:ws

Build && Server

npm run server:ws

NOTE: There is a problem with ES5 PKIjs. To fix this you need to do steps described bellow

Enter to pkijs folder

cd node_modules/pkijs

Install babel-polyfill

npm i babel-polyfill

Update src/index.js by adding require("babel-polyfill"); at the beginning.

Rebuild PKIjs (run command from pkijs folder)

npm run build

Tests combined with Chrome native webcrypto

Open test/index.html

Example

Open dist/index.html

Related