crypto.createHash fix for node.js < 11