Util.hash()

Generate unique string from the provided value.

Useful for checksums (error-checking) and hash keys (caching, etc.) Uses the crypto module from Node core via `object-hash` on NPM (see http://npmjs.org/package/object-hash)

Usage

Hover over inputs/exits for more info.

var Util = require('machinepack-util');


// Generate unique string from the provided value.

Util.hash({

value: '*',

}).execSync();

Inputs

value required

The value for which to calculate a unique hash string.

'*'

Exits

error

An unexpected error occurred.

success

OK.

'e003c89cdf35cdf46d8239b4692436364b7259f9'