crypto.createHash fix for node.js < 11
Merge pull request #735 from jas-/crypto-fix

crypto.createHash fix for node.js < 11