# simple-sha1

> A simple api for generating sha1 hashes in node and the browser.

Latest version **3.1.0** (published 2021-02-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install simple-sha1
pnpm add simple-sha1
yarn add simple-sha1
bun add simple-sha1
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.1.0 |
| Published | 2021-02-26 |
| First published | 2014-11-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/simple-sha1) |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 22 |
| Author | Michael Rhodes |
| Maintainers | michaelrhodes, feross |
| Keywords | sha1, rusha, browser, node, browserify |

## Links

- npm: https://www.npmjs.com/package/simple-sha1
- Repository: https://github.com/michaelrhodes/simple-sha1
- Issues: https://github.com/michaelrhodes/simple-sha1/issues
- npm.io page: https://npm.io/package/simple-sha1

## Dependencies (2)

- [rusha](https://npm.io/package/rusha.md) ^0.8.13
- [queue-microtask](https://npm.io/package/queue-microtask.md) ^1.2.2

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 3.1.0 (latest) — 2021-02-26
- 3.0.1 — 2019-09-10
- 3.0.0 — 2019-09-05
- 2.1.2 — 2019-03-02
- 2.1.1 — 2018-05-17
- 2.1.0 — 2016-11-23
- 2.0.8 — 2016-03-29
- 2.0.7 — 2015-01-16
- 2.0.6 — 2015-01-15
- 2.0.5 — 2015-01-09
- 2.0.4 — 2015-01-05
- 2.0.3 — 2015-01-05
- 2.0.2 — 2015-01-05
- 2.0.1 — 2015-01-05
- 2.0.0 — 2015-01-05
- … 2 more at https://npm.io/package/simple-sha1/versions

## README

# simple-sha1
simple-sha1 wraps three fast SHA1 implementations, and exposes a simple api for generating hashes in node ([crypto](http://nodejs.org/api/crypto.html)) and the browser ([WebCryptoAPI](http://www.w3.org/TR/WebCryptoAPI/) || [Rusha](https://github.com/srijs/rusha)).

[![Build status](https://travis-ci.org/michaelrhodes/simple-sha1.png?branch=master)](https://travis-ci.org/michaelrhodes/simple-sha1)

[![Sauce Test Status](https://saucelabs.com/browser-matrix/simple-sha1.svg)](https://saucelabs.com/u/simple-sha1)

## install
```sh
$ npm install simple-sha1
```

## example
```js
var sha1 = require('simple-sha1')

// Because the WebCryptoAPI uses Promises (shudder),
// you have to pass a callback if you want to take
// advantage of its mad-sick performance.

sha1('hey there', function (hash) {
  console.log(hash)
  > 6b1c01703b68cf9b35ab049385900b5c428651b6
})

// However, if you don’t mind always using Rusha in
// the browser, you can just call sha1.sync and be
// done with it.

console.log(sha1.sync('hey there'))
> 6b1c01703b68cf9b35ab049385900b5c428651b6
```

## license
[MIT](http://opensource.org/licenses/MIT)

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