HashNode
Creates a hash for a value using the SHA-256 algorithm. Returns a promise.
const crypto = require('crypto');
const hashNode = val =>
new Promise(resolve =>
setTimeout(
() => resolve(crypto.createHash('sha256').update(val).digest('hex')),
0
)
);