django-vue3-admin-web/node_modules/@aws-crypto/sha1-browser
2025-10-20 21:21:14 +08:00
..
build 初始化 2025-10-20 21:21:14 +08:00
node_modules/@smithy 初始化 2025-10-20 21:21:14 +08:00
src 初始化 2025-10-20 21:21:14 +08:00
CHANGELOG.md 初始化 2025-10-20 21:21:14 +08:00
LICENSE 初始化 2025-10-20 21:21:14 +08:00
package.json 初始化 2025-10-20 21:21:14 +08:00
README.md 初始化 2025-10-20 21:21:14 +08:00
tsconfig.json 初始化 2025-10-20 21:21:14 +08:00
tsconfig.module.json 初始化 2025-10-20 21:21:14 +08: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