Create hashes which indicate the algorithm like alg$hash
npm install dollar-hashA module for creating hashes, which indicate the algorithm being used like"alg$hash". Install it with npm install dollar-hash.
It was inspired and can be used for the specification of
the Open Badges verification.
``js
var hash = require('dollar-hash')
var text = 'the text to hash'
var dollarhash = hash(text, 'mysalt', 'sha256')
hash.verify(dollarhash, text, 'mysalt', 'sha256')
// evaluates to true
`
Creates a dollar hash of text, optionally with a specific salt and algorithmsha256
(defaults to ).
Compares the hash of text with dollarhashed, optionally using a saltsha256
and a specific algorithm (defaults to ).
Returns a boolean value.