- 在editStorageForm中初始化oss_storage_quota_value和oss_quota_unit - 删除重复的旧配额说明块,保留新的当前配额设置显示 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
22 lines
394 B
Markdown
22 lines
394 B
Markdown
# @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`
|