diff --git a/lib/rsa-forge.js b/lib/rsa-forge.js index 443d6e2..e00da75 100644 --- a/lib/rsa-forge.js +++ b/lib/rsa-forge.js @@ -54,7 +54,7 @@ var forgec = module.exports = { // Generate New Keypair // , generateKeypair: function (bitlen, exp, options, cb) { - var fkeypair = forge.pki.rsa.generateKeyPair({ bits: bitlen || 1024, e: exp || 0x10001 }); + var fkeypair = forge.pki.rsa.generateKeyPair({ bits: bitlen || 2048, e: exp || 0x10001 }); var result = { _forge: fkeypair.privateKey , _forgePublic: fkeypair.publicKey