# isomorphic-crypto

> Isomorphic crypto package for node and the browser.

Latest version **3.0.0** (published 2017-08-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install isomorphic-crypto
pnpm add isomorphic-crypto
yarn add isomorphic-crypto
bun add isomorphic-crypto
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2017-08-22 |
| First published | 2017-08-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Andy Wermke |
| Maintainers | andywer |
| Keywords | crypto, hash, hmac, isomorphic, sign, universal |

## Links

- npm: https://www.npmjs.com/package/isomorphic-crypto
- Repository: https://github.com/andywer/isomorphic-crypto
- Homepage: https://github.com/andywer/isomorphic-crypto#readme
- Issues: https://github.com/andywer/isomorphic-crypto/issues
- npm.io page: https://npm.io/package/isomorphic-crypto

## Dependencies (1)

- [crypto-browserify](https://npm.io/package/crypto-browserify.md) ^3.11.1

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

- 3.0.0 (latest) — 2017-08-22

## README

# isomorphic-crypto [![NPM Version](https://img.shields.io/npm/v/isomorphic-crypto.svg)](https://www.npmjs.com/package/isomorphic-crypto)

Isomorphic crypto package for node and the browser. Uses the [native crypto module](https://nodejs.org/api/crypto.html) when run in node and [crypto-browserify](https://www.npmjs.com/package/crypto-browserify) when run in the browser. Use it for hashing, signing and your other crypto needs!


## Installation

```sh
npm install --save isomorphic-crypto

# using yarn:

yarn add isomorphic-crypto
```


## Usage

Have a look at the official [crypto documentation](https://nodejs.org/api/crypto.html).

Please be aware that the browser version of this library uses `crypto-browserify`, which is only a partial implementation of node's native `crypto` module. Check out [their documentation](https://www.npmjs.com/package/crypto-browserify) to see what is supported and what not.


## Example

```js
const crypto = require('isomorphic-crypto')

function sha512 (string) {
  const hash = crypto.createHash('sha512')
  hash.write(string)
  return hash.digest('hex')
}

console.log(`sha512('crypto rocks') = ${sha512('crypto rocks')}`)
```


## Versioning

The library's major version matches the major version of the [crypto-browserify](https://www.npmjs.com/package/crypto-browserify) package. The minor and patch version can be bumped independently.

## License

MIT

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