{"_id":"webcrypto","_rev":"4577567","name":"webcrypto","description":"Use the Node.js crypto module API without having to worry if it is being run in browser or Node.js","dist-tags":{"latest":"0.1.1"},"maintainers":[{"name":"daviddias","email":"daviddias.p@gmail.com"}],"time":{"modified":"2026-04-10T15:47:58.000Z","created":"2015-11-01T15:00:04.559Z","0.1.1":"2017-12-13T20:03:40.818Z","0.1.0":"2015-11-01T15:00:04.559Z"},"users":{},"author":{"name":"David Dias","email":"daviddias.p@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/diasdavid/webcrypto.git"},"versions":{"0.1.1":{"name":"webcrypto","version":"0.1.1","description":"Use the Node.js crypto module API without having to worry if it is being run in browser or Node.js","main":"src/index.js","scripts":{"lint":"aegir lint","build":"aegir build","test":"aegir test -t node -t browser -t webworker","test:node":"aegir test -t node","test:browser":"aegir test -t browser","test:webworker":"aegir test -t webworker","release":"aegir release -t node -t browser","release-minor":"aegir release --type minor -t node -t browser","release-major":"aegir release --type major -t node -t browser","coverage":"aegir coverage","coverage-publish":"aegir coverage --provider coveralls"},"repository":{"type":"git","url":"git+https://github.com/diasdavid/webcrypto.git"},"pre-commit":["lint","test"],"keywords":["crypto"],"author":{"name":"David Dias","email":"daviddias.p@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/diasdavid/webcrypto/issues"},"homepage":"https://github.com/diasdavid/webcrypto#readme","dependencies":{"crypto-browserify":"^3.10.0","detect-node":"^2.0.3"},"devDependencies":{"aegir":"^12.2.0","chai":"^4.0.1","dirty-chai":"^2.0.1","hash-test-vectors":"^1.3.2","pre-commit":"^1.1.2","pseudorandombytes":"^2.0.0"},"contributors":[{"name":"David Dias","email":"daviddias.p@gmail.com"},{"name":"Dmitriy Ryajov","email":"dryajov@gmail.com"},{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"},{"name":"greenkeeper[bot]","email":"greenkeeper[bot]@users.noreply.github.com"}],"gitHead":"160c7691b7495e144427003ec9accfc9f7938d9c","_id":"webcrypto@0.1.1","_npmVersion":"5.6.0","_nodeVersion":"8.8.0","_npmUser":{"name":"daviddias","email":"daviddias.p@gmail.com"},"dist":{"shasum":"63316e5ecbce6ce965ab5f259c2faa62c3e782b4","size":449261,"noattachment":false,"key":"/webcrypto/-/webcrypto-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/webcrypto/download/webcrypto-0.1.1.tgz"},"maintainers":[{"name":"daviddias","email":"daviddias.p@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webcrypto-0.1.1.tgz_1513195418882_0.64240592578426"},"directories":{},"publish_time":1513195420818,"_hasShrinkwrap":false,"_cnpm_publish_time":1513195420818,"_cnpmcore_publish_time":"2021-12-16T12:03:35.435Z"},"0.1.0":{"name":"webcrypto","version":"0.1.0","description":"Use the Node.js crypto module API without having to worry if it is being run in browser or Node.js","main":"src/index.js","scripts":{"test:node":"node test","lint":"standard","test:browser":"zuul --browser-version $BROWSER_VERSION --browser-name $BROWSER_NAME -- test/index.js","test:browser:q":"BROWSER_VERSION=46 BROWSER_NAME=chrome npm run test:browser"},"repository":{"type":"git","url":"git+https://github.com/diasdavid/webcrypto.git"},"keywords":["crypto"],"author":{"name":"David Dias","email":"daviddias.p@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/diasdavid/webcrypto/issues"},"homepage":"https://github.com/diasdavid/webcrypto#readme","dependencies":{"crypto-browserify":"^3.10.0"},"devDependencies":{"hash-test-vectors":"^1.3.2","pseudorandombytes":"^2.0.0","standard":"^5.3.1","tape":"^4.2.2","zuul":"^3.7.2"},"browser":{"crypto":false},"gitHead":"e6ebef8310378a086d5d9fc08184ce74479d859b","_id":"webcrypto@0.1.0","_shasum":"941892483bc50c5464637c180b72dbde3ae9fa04","_from":".","_npmVersion":"3.3.10","_nodeVersion":"4.2.1","_npmUser":{"name":"daviddias","email":"daviddias.p@gmail.com"},"maintainers":[{"name":"daviddias","email":"daviddias.p@gmail.com"}],"dist":{"shasum":"941892483bc50c5464637c180b72dbde3ae9fa04","size":8298,"noattachment":false,"key":"/webcrypto/-/webcrypto-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/webcrypto/download/webcrypto-0.1.0.tgz"},"directories":{},"publish_time":1446390004559,"_hasShrinkwrap":false,"_cnpm_publish_time":1446390004559,"_cnpmcore_publish_time":"2021-12-16T12:03:35.832Z"}},"readme":"webcrypto\n=========\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Coverage Status](https://coveralls.io/repos/github/diasdavid/webcrypto/badge.svg?branch=master)](https://coveralls.io/github/diasdavid/webcrypto?branch=master)\n[![Travis CI](https://travis-ci.org/diasdavid/webcrypto.svg?branch=master)](https://travis-ci.org/diasdavid/webcrypto)\n[![Circle CI](https://circleci.com/gh/diasdavid/webcrypto.svg?style=svg)](https://circleci.com/gh/diasdavid/webcrypto)\n[![Dependency Status](https://david-dm.org/diasdavid/webcrypto.svg?style=flat-square)](https://david-dm.org/diasdavid/webcrypto) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> WebCryptoAPI polyfil to work in Node.js in the Browser (so that you don't have to be concerned about moving crypto code between a browser and server side app)\n\n## Roadmap\n\n- [x] Expose the Node.js crypto module interface\n- [x] Use crypto-browserify to make it work in the browser\n- [ ] Replace crypto-browserify with WebCryptoAPI when browser supports it\n- [ ] Consider if we should replace the functions that TweetNaCL offers for perf/or and stability improvements\n\n## API\n\nThis module should follow at all times the Node.js Crypto API https://nodejs.org/api/crypto.html\n\n## Tests\n\nThis module is using tests from crypto-browserify to validate that the expectations remain fulfilled\n","_attachments":{},"homepage":"https://github.com/diasdavid/webcrypto#readme","bugs":{"url":"https://github.com/diasdavid/webcrypto/issues"},"license":"MIT"}