`createHash` now throws when alg is not supplied to be node complient