eliding node/browser differences in crypto lib