https://github.com/cryptocoinjs/crypto-hashing
JavaScript hashing libraries wrapped up into one module. Compatible with Node and the browser.
https://github.com/cryptocoinjs/crypto-hashing
Last synced: about 1 year ago
JSON representation
JavaScript hashing libraries wrapped up into one module. Compatible with Node and the browser.
- Host: GitHub
- URL: https://github.com/cryptocoinjs/crypto-hashing
- Owner: cryptocoinjs
- License: mit
- Created: 2014-01-12T21:05:45.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-03-30T20:19:22.000Z (about 10 years ago)
- Last Synced: 2025-03-02T05:42:19.072Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 11
- Watchers: 5
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# crypto-hashing
[](https://www.npmjs.org/package/crypto-hashing)
[](https://travis-ci.org/cryptocoinjs/crypto-hashing)
[](https://david-dm.org/cryptocoinjs/crypto-hashing#info=dependencies)
[](https://github.com/feross/standard)
###### Available functions:
In addition to functions from [crypto-browserify/createHash](https://github.com/crypto-browserify/createHash):
- hash160 (sha256 and then ripemd160)
- hash256 (sha256 twice)
###### Example
```js
var cryptoHash = require('crypto-hashing')
var buffer = new Buffer('Hello there!')
console.log(cryptoHash('hash256', buffer).toString('hex'))
// e365181d0a42d3f57906af24c80d4636158455d140734c85e80609fa7d100300
```
## License
MIT