# webcrypto

> Use the Node.js crypto module API without having to worry if it is being run in browser or Node.js

Latest version **0.1.1** (published 2017-12-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install webcrypto
pnpm add webcrypto
yarn add webcrypto
bun add webcrypto
```

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2017-12-13 |
| First published | 2015-11-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/webcrypto) |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 25 |
| Author | David Dias |
| Maintainers | daviddias |
| Keywords | crypto |

## Links

- npm: https://www.npmjs.com/package/webcrypto
- Repository: https://github.com/diasdavid/webcrypto
- Homepage: https://github.com/diasdavid/webcrypto#readme
- Issues: https://github.com/diasdavid/webcrypto/issues
- npm.io page: https://npm.io/package/webcrypto

## Dependencies (2)

- [detect-node](https://npm.io/package/detect-node.md) ^2.0.3
- [crypto-browserify](https://npm.io/package/crypto-browserify.md) ^3.10.0

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2017-12-13
- 0.1.0 — 2015-11-01

## README

webcrypto
=========

[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)
[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)
[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
[![Coverage Status](https://coveralls.io/repos/github/diasdavid/webcrypto/badge.svg?branch=master)](https://coveralls.io/github/diasdavid/webcrypto?branch=master)
[![Travis CI](https://travis-ci.org/diasdavid/webcrypto.svg?branch=master)](https://travis-ci.org/diasdavid/webcrypto)
[![Circle CI](https://circleci.com/gh/diasdavid/webcrypto.svg?style=svg)](https://circleci.com/gh/diasdavid/webcrypto)
[![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)

> 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)

## Roadmap

- [x] Expose the Node.js crypto module interface
- [x] Use crypto-browserify to make it work in the browser
- [ ] Replace crypto-browserify with WebCryptoAPI when browser supports it
- [ ] Consider if we should replace the functions that TweetNaCL offers for perf/or and stability improvements

## API

This module should follow at all times the Node.js Crypto API https://nodejs.org/api/crypto.html

## Tests

This module is using tests from crypto-browserify to validate that the expectations remain fulfilled

---
_Source: https://npm.io/package/webcrypto · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
