use 2048 bits by default
This commit is contained in:
parent
efed0c23d9
commit
98f887a59a
|
@ -54,7 +54,7 @@ var forgec = module.exports = {
|
||||||
// Generate New Keypair
|
// Generate New Keypair
|
||||||
//
|
//
|
||||||
, generateKeypair: function (bitlen, exp, options, cb) {
|
, 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 = {
|
var result = {
|
||||||
_forge: fkeypair.privateKey
|
_forge: fkeypair.privateKey
|
||||||
, _forgePublic: fkeypair.publicKey
|
, _forgePublic: fkeypair.publicKey
|
||||||
|
|
Loading…
Reference in New Issue