初始化环境文件
This commit is contained in:
21
node_modules/@aws-crypto/sha1-browser/README.md
generated
vendored
Normal file
21
node_modules/@aws-crypto/sha1-browser/README.md
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
# @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`
|
||||
Reference in New Issue
Block a user