NeahNew/node_modules/@aws-crypto/sha1-browser
2025-05-04 13:45:45 +02:00
..
build pages s3 2025-05-04 13:45:45 +02:00
node_modules/@smithy pages s3 2025-05-04 13:45:45 +02:00
src pages s3 2025-05-04 13:45:45 +02:00
CHANGELOG.md pages s3 2025-05-04 13:45:45 +02:00
LICENSE pages s3 2025-05-04 13:45:45 +02:00
package.json pages s3 2025-05-04 13:45:45 +02:00
README.md pages s3 2025-05-04 13:45:45 +02:00
tsconfig.json pages s3 2025-05-04 13:45:45 +02:00
tsconfig.module.json pages s3 2025-05-04 13:45:45 +02:00

@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