# tiny-sha1

> Tiny SHA-1 hasher for Node and browsers

Latest version **0.2.1** (published 2016-08-09) · MIT license · 0 weekly downloads

## Install

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

## Health

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

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

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2016-08-09 |
| First published | 2016-07-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Max Davidson |
| Maintainers | maxdavidson |
| Keywords | sha1, sha-1, hash, digest |

## Links

- npm: https://www.npmjs.com/package/tiny-sha1
- Repository: https://github.com/maxdavidson/tiny-sha1
- Homepage: https://github.com/maxdavidson/tiny-sha1#readme
- Issues: https://github.com/maxdavidson/tiny-sha1/issues
- npm.io page: https://npm.io/package/tiny-sha1

## 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.2.1 (latest) — 2016-08-09
- 0.2.0 — 2016-07-11
- 0.1.0 — 2016-07-10

## README

# tiny-sha1

[![NPM](https://img.shields.io/npm/v/tiny-sha1.svg)](https://www.npmjs.com/package/tiny-sha1)
[![Build Status](https://img.shields.io/travis/maxdavidson/tiny-sha1/master.svg)](https://travis-ci.org/maxdavidson/tiny-sha1)
[![Coverage Status](https://img.shields.io/coveralls/maxdavidson/tiny-sha1/master.svg)](https://coveralls.io/github/maxdavidson/tiny-sha1?branch=master)
[![Dependency Status](https://img.shields.io/david/maxdavidson/tiny-sha1.svg)](https://david-dm.org/maxdavidson/tiny-sha1)
[![devDependency Status](https://img.shields.io/david/dev/maxdavidson/tiny-sha1.svg)](https://david-dm.org/maxdavidson/tiny-sha1#info=devDependencies)

A tiny, synchronous implementation of the [SHA-1 hash function](https://en.wikipedia.org/wiki/SHA-1).

Only works on `Uint8Array` for performance and portability reasons.


## API

```typescript
export default function sha1(bytes: Uint8Array): string;
```


## Usage

```javascript
import sha1 from 'tiny-sha1';

const emptyBuffer = new Uint8Array(0);
const hash = sha1(emptyBuffer);

console.assert(hash === 'da39a3ee5e6b4b0d3255bfef95601890afd80709');
```

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