# @aws-crypto/sha1-browser

> SHA1 wrapper for browsers that prefers `window.crypto.subtle`.

Latest version **5.2.0** (published 2023-10-16) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @aws-crypto/sha1-browser
pnpm add @aws-crypto/sha1-browser
yarn add @aws-crypto/sha1-browser
bun add @aws-crypto/sha1-browser
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 5.2.0 |
| Published | 2023-10-16 |
| First published | 2021-09-17 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 6 |
| Unpacked size | 37.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 69 |
| Author | AWS Crypto Tools Team |
| Maintainers | amzn-oss, seebees, agray256, lavaleri, salkeldr, aws-crypto-tools-ci-bot, mattsb42-aws, farleyb-aws |

## Links

- npm: https://www.npmjs.com/package/@aws-crypto/sha1-browser
- Repository: https://github.com/aws/aws-sdk-js-crypto-helpers
- Homepage: https://github.com/aws/aws-sdk-js-crypto-helpers/tree/master/packages/sha1-browser
- Issues: https://github.com/aws/aws-sdk-js-crypto-helpers/issues
- npm.io page: https://npm.io/package/@aws-crypto/sha1-browser

## Dependencies (6)

- [tslib](https://npm.io/package/tslib.md) ^2.6.2
- [@aws-sdk/types](https://npm.io/package/@aws-sdk/types.md) ^3.222.0
- [@aws-crypto/util](https://npm.io/package/@aws-crypto/util.md) ^5.2.0
- [@smithy/util-utf8](https://npm.io/package/@smithy/util-utf8.md) ^2.0.0
- [@aws-sdk/util-locate-window](https://npm.io/package/@aws-sdk/util-locate-window.md) ^3.0.0
- [@aws-crypto/supports-web-crypto](https://npm.io/package/@aws-crypto/supports-web-crypto.md) ^5.2.0

## Recent versions

- 5.2.0 (latest) — 2023-10-16
- 5.1.0 — 2023-09-22
- 5.0.0 — 2023-07-13
- 4.0.0 — 2023-02-20
- 3.0.0 — 2023-01-12
- 2.0.2 — 2022-09-07
- 2.0.0 — 2021-10-25
- 1.2.0 — 2021-09-17

## README

# @aws-crypto/sha1-browser

SHA1 wrapper for browsers that prefers `window.crypto.subtle`.

SHA1 is **NOT** a cryptographically secure algorithm.
It should _only_ be used for non cryptographic functions like checksums.

## Usage

```
import {Sha1} from '@aws-crypto/sha1-browser'

const hash = new Sha1();
hash.update('some data');
const result = await hash.digest();

```

## Test

`npm test`

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