Common crypto module for node.js and the browser