Improve performance.

This commit is contained in:
Chen Yi-Cyuan
2015-02-26 10:35:13 +08:00
parent b249e417a7
commit 87364f594b
10 changed files with 292 additions and 68 deletions
+10
View File
@@ -4,6 +4,12 @@
[![NPM](https://nodei.co/npm/js-sha3.png?stars&downloads)](https://nodei.co/npm/js-sha3/)
A simple SHA-3 / Keccak hash function for JavaScript supports UTF-8 encoding.
## Demo
[SHA3-512 Online](http://emn178.github.io/online-tools/sha3_512.html)
[SHA3-384 Online](http://emn178.github.io/online-tools/sha3_384.html)
[SHA3-256 Online](http://emn178.github.io/online-tools/sha3_256.html)
[SHA3-224 Online](http://emn178.github.io/online-tools/sha3_224.html)
## Download
[Compress](https://raw.github.com/emn178/js-sha3/master/build/sha3.min.js)
[Uncompress](https://raw.github.com/emn178/js-sha3/master/src/sha3.js)
@@ -80,6 +86,10 @@ Output
70a2b6579047f0a977fcb5e9120a4e07067bea9abb6916fbc2d13ffb9a4e4eee
f71837502ba8e10837bdd8d365adb85591895602fc552b48b7390abd
## Benchmark
[UTF8](http://jsperf.com/sha3/3)
[ASCII](http://jsperf.com/sha3/2)
## Extensions
### jQuery
If you prefer jQuery style, you can add following code to add a jQuery extension.