Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
394 B
Text
21 lines
394 B
Text
# @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`
|