Crypto API

Modified duo.js to use node's crypto library