Skip to content

Commit

Permalink
Improve performance.
Browse files Browse the repository at this point in the history
  • Loading branch information
emn178 committed Feb 26, 2015
1 parent b249e41 commit 87364f5
Show file tree
Hide file tree
Showing 10 changed files with 292 additions and 68 deletions.
2 changes: 1 addition & 1 deletion .covignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/tests/
/test/
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v0.1.1 / 2015-02-26

* Improve performance.

# v0.1.0 / 2015-02-23

* Initial release
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "js-sha3",
"version": "0.1.0",
"version": "0.1.1",
"main": ["build/sha3.min.js"],
"ignore": [
"samples",
"tests"
"test"
]
}
27 changes: 22 additions & 5 deletions build/sha3.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "js-sha3",
"version": "0.1.0",
"version": "0.1.1",
"description": "A simple SHA-3 / Keccak hash function for JavaScript supports UTF-8 encoding.",
"main": "src/sha3.js",
"devDependencies": {
"expect.js": "~0.3.1",
"jscoverage": "~0.5.9"
},
"scripts": {
"test": "mocha tests/node-test.js -r jscoverage",
"coveralls": "mocha tests/node-test.js -R mocha-lcov-reporter -r jscoverage | coveralls"
"test": "mocha test/node-test.js -r jscoverage",
"coveralls": "mocha test/node-test.js -R mocha-lcov-reporter -r jscoverage | coveralls"
},
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit 87364f5

Please sign in to comment.