From 09a4ec5133c25875726c7561446f2b732c99605a Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Mon, 8 Apr 2019 20:14:02 +0200 Subject: [PATCH] move away from forge --- src/RSA.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RSA.ts b/src/RSA.ts index f820039..34e51d0 100644 --- a/src/RSA.ts +++ b/src/RSA.ts @@ -14,7 +14,7 @@ export default class RSA { static gen = (size: number = 2 ** 12): Promise => new Promise((resolve, reject) => { // @ts-ignore generateKeyPair('rsa', { - modulusLength: 4096, + modulusLength: size, publicKeyEncoding: { type: 'pkcs1', format: 'pem' }, privateKeyEncoding: { type: 'pkcs1', format: 'pem' }, }, (err: string, pub: string, prv: string) => {