mirror of
https://github.com/emn178/js-sha256.git
synced 2026-08-13 21:11:55 +08:00
Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dc41862e53 | ||
|
|
c31830ad54 | ||
|
|
f490ee426a |
@@ -1,5 +1,9 @@
|
||||
# Change Log
|
||||
|
||||
## v0.10.1 / 2023-08-31
|
||||
### Added
|
||||
- Disable webpack polyfill.
|
||||
|
||||
## v0.10.0 / 2023-08-30
|
||||
### Fixed
|
||||
- Chrome bug by workaround. #40
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
Copyright (c) 2014-2017 Chen, Yi-Cyuan
|
||||
Copyright (c) 2014-2023 Chen, Yi-Cyuan
|
||||
|
||||
MIT License
|
||||
|
||||
|
||||
@@ -6,8 +6,10 @@
|
||||
A simple SHA-256 / SHA-224 hash function for JavaScript supports UTF-8 encoding.
|
||||
|
||||
## Demo
|
||||
[SHA256 Online](http://emn178.github.io/online-tools/sha256.html)
|
||||
[SHA224 Online](http://emn178.github.io/online-tools/sha224.html)
|
||||
[SHA256 Online](https://emn178.github.io/online-tools/sha256.html)
|
||||
[SHA224 Online](https://emn178.github.io/online-tools/sha224.html)
|
||||
[SHA256 File Online](https://emn178.github.io/online-tools/sha256_checksum.html)
|
||||
[SHA225 File Online](https://emn178.github.io/online-tools/sha224_checksum.html)
|
||||
|
||||
## Download
|
||||
[Compress](https://raw.github.com/emn178/js-sha256/master/build/sha256.min.js)
|
||||
@@ -64,7 +66,7 @@ or
|
||||
const { sha256, sha224 } = require('js-sha256');
|
||||
```
|
||||
### TypeScript
|
||||
or TypeScript
|
||||
If you use TypeScript, you can import like this:
|
||||
```TypeScript
|
||||
import { sha256, sha224 } from 'js-sha256';
|
||||
```
|
||||
@@ -100,8 +102,11 @@ sha256.digest(''); // [227, 176, 196, 66, 152, 252, 28, 20, 154, 251, 244, 200,
|
||||
sha256.arrayBuffer(''); // ArrayBuffer
|
||||
```
|
||||
|
||||
## Benchmark
|
||||
[jsPerf Benchmark](https://jsperf.app/cidole/2)
|
||||
|
||||
## License
|
||||
The project is released under the [MIT license](http://www.opensource.org/licenses/MIT).
|
||||
The project is released under the [MIT license](https://opensource.org/license/mit/).
|
||||
|
||||
## Contact
|
||||
The project's website is located at https://github.com/emn178/js-sha256
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "js-sha256",
|
||||
"version": "0.9.0",
|
||||
"version": "0.10.1",
|
||||
"main": ["src/sha256.js"],
|
||||
"ignore": [
|
||||
"samples",
|
||||
|
||||
Generated
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "js-sha256",
|
||||
"version": "0.9.0",
|
||||
"version": "0.10.1",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
||||
+5
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "js-sha256",
|
||||
"version": "0.10.0",
|
||||
"version": "0.10.1",
|
||||
"description": "A simple SHA-256 / SHA-224 hash function for JavaScript supports UTF-8 encoding.",
|
||||
"main": "src/sha256.js",
|
||||
"devDependencies": {
|
||||
@@ -40,5 +40,9 @@
|
||||
"exclude": [
|
||||
"tests"
|
||||
]
|
||||
},
|
||||
"browser": {
|
||||
"crypto": false,
|
||||
"buffer": false
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* [js-sha256]{@link https://github.com/emn178/js-sha256}
|
||||
*
|
||||
* @version 0.10.0
|
||||
* @version 0.10.1
|
||||
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
||||
* @copyright Chen, Yi-Cyuan 2014-2023
|
||||
* @license MIT
|
||||
|
||||
Reference in New Issue
Block a user