Common JavaScript crypto module and helpers for the browser and node.js