Skip to content

Commit

Permalink
Upgrade to 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
h2non committed Jul 24, 2013
1 parent e8c8317 commit 34f887e
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 114 deletions.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,25 @@ document.write('<p>MD5: <b>' + MD5 + '</b></p>');
</html>
```

### CLI

You can use the simple command-line interface to generate hashes.

```bash
$ hashes sha1-hex This is a sample string
> b6a8501d8a70e74e1dc12a6082102622fdc719bb

# or with quotes
$ hashes sha1-hex "This is a sample string"
> b6a8501d8a70e74e1dc12a6082102622fdc719bb
```

For more information about the options supported, type:

```bash
$ hashes -h
```

### Module

The library is based on CommonJS module standard, so the same code works in [Node](http://nodejs.org) and other environments.
Expand Down Expand Up @@ -171,6 +190,9 @@ See `client/benchmark.html` for client-side.

## Changelog

* `1.0.4`
- Fix CLI script call error when use it from Bash
- Added CLI usage example
* `1.0.3`
- Important bugfixes to UTF-8 encoding (broken in 1.0.2) and the RIPEMD-160 hash (broken in 1.0.1). (gh #6)
- New test suite for hashes, CRC32, and hmac; run with 'npm test' in node.
Expand Down Expand Up @@ -246,4 +268,4 @@ jsHashes is released under `New BSD` license. See `LICENSE` file.

## Issues

Feel free to report any issue you experiment via Github <https://github.com/h2non/jsHashes/issues>.
Feel free to report any issue you experiment via Github <https://github.com/h2non/jsHashes/issues>.
104 changes: 0 additions & 104 deletions bin/hashes.js

This file was deleted.

4 changes: 2 additions & 2 deletions component.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "jsHashes",
"version": "1.0.3",
"version": "1.0.4",
"main": "hashes.js",
"ignore": [
"**/.*",
"node_modules",
"components"
]
}
}
4 changes: 2 additions & 2 deletions hashes.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @class Hashes
* @author Tomas Aparicio <tomas@rijndael-project.com>
* @license New BSD (see LICENSE file)
* @version 1.0.3
* @version 1.0.4
*
* Algorithms specification:
*
Expand Down Expand Up @@ -1625,4 +1625,4 @@
window.Hashes = Hashes;
}
}( this ));
}()); // IIFE
}()); // IIFE
4 changes: 2 additions & 2 deletions hashes.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name" : "jshashes"
, "description" : "A fast and independent hashing library pure JavaScript implemented (ES3 compliant) for both server and client side (MD5, SHA1, SHA256, SHA512, RIPEMD, HMAC and Base64)"
, "keywords" : [ "hash", "md5", "sha1", "sha256", "hashes", "sha512", "RIPEMD", "base64", "hmac", "crc", "encoding", "algorithm" ]
, "version" : "1.0.3"
, "version" : "1.0.4"
, "maintainers" : [
{
"name": "Tomas Aparicio",
Expand Down Expand Up @@ -30,7 +30,7 @@
, "engines" : { "node" : "*", "browser": "*"}
, "main" : "hashes"
, "bin": {
"hashes": "./bin/hashes.js"
"hashes": "./bin/cli.js"
}
, "licenses": [
{
Expand All @@ -48,4 +48,4 @@
"/examples/client/hexadecimal.html",
"/examples/client/benchmark.html"
]
}
}

0 comments on commit 34f887e

Please sign in to comment.