Projekt

Obecné

Profil

Stáhnout (688 Bajtů) Statistiky
| Větev: | Revize:
1
# create-hash
2

    
3
[![Build Status](https://travis-ci.org/crypto-browserify/createHash.svg)](https://travis-ci.org/crypto-browserify/createHash)
4

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

    
7
API is the same as hashes in node:
8
```js
9
var createHash = require('create-hash')
10
var hash = createHash('sha224')
11
hash.update('synchronous write') // optional encoding parameter
12
hash.digest() // synchronously get result with optional encoding parameter
13

    
14
hash.write('write to it as a stream')
15
hash.end() // remember it's a stream
16
hash.read() // only if you ended it as a stream though
17
```
18

    
19
To get the JavaScript version even in node do `require('create-hash/browser')`
(3-3/8)