https://github.com/browserify/createhash
Node style hashes for use in the browser, with native hash functions in node
https://github.com/browserify/createhash
Last synced: 6 months ago
JSON representation
Node style hashes for use in the browser, with native hash functions in node
- Host: GitHub
- URL: https://github.com/browserify/createhash
- Owner: browserify
- License: mit
- Created: 2015-01-14T12:44:52.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2024-12-21T10:00:09.000Z (about 1 year ago)
- Last Synced: 2025-08-08T21:28:17.056Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 53.7 KB
- Stars: 54
- Watchers: 4
- Forks: 35
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# create-hash
[](https://travis-ci.org/crypto-browserify/createHash)
Node style hashes for use in the browser, with native hash functions in node.
API is the same as hashes in node:
```js
var createHash = require('create-hash')
var hash = createHash('sha224')
hash.update('synchronous write') // optional encoding parameter
hash.digest() // synchronously get result with optional encoding parameter
hash.write('write to it as a stream')
hash.end() // remember it's a stream
hash.read() // only if you ended it as a stream though
```
To get the JavaScript version even in node do `require('create-hash/browser')`