shasum-object
get the shasum of a buffer or object
Install - Usage - License: Apache-2.0
Install
npm install shasum-object
Usage
var fs = var shasum =
API
shasum(input, algorithm = 'sha1', encoding = 'hex')
Compute the hash for the given input.
input
- a string, buffer or JSON object. objects are stringified usingfast-safe-stringify
.algorithm
- the hash algorithm to use. seecrypto.createHash
.encoding
- how to encode the hash result. seehash.digest
.