Key generation for Node.js.