create-hash (1.2.0)

Published 2026-02-24 13:54:41 +00:00 by atheaadmin

Installation

registry=
npm install create-hash@1.2.0
"create-hash": "1.2.0"

About this package

create-hash

Build Status

Node style hashes for use in the browser, with native hash functions in node.

API is the same as hashes in node:

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')

Dependencies

Dependencies

ID Version
cipher-base ^1.0.1
inherits ^2.0.1
md5.js ^1.3.4
ripemd160 ^2.0.1
sha.js ^2.4.0

Development Dependencies

ID Version
hash-test-vectors ^1.3.2
safe-buffer ^5.0.1
standard ^10.0.2
tap-spec ^2.1.2
tape ^4.6.3

Keywords

crypto
Details
npm
2026-02-24 13:54:41 +00:00
0
MIT
latest
2.4 KiB
Assets (1)
Versions (2) View all
1.1.3 2026-02-24
1.2.0 2026-02-24