mirror of
https://github.com/cupcakearmy/occulto.git
synced 2024-11-01 06:04:17 +01:00
move away from forge
This commit is contained in:
parent
e808166a6d
commit
09a4ec5133
@ -14,7 +14,7 @@ export default class RSA {
|
||||
static gen = (size: number = 2 ** 12): Promise<KeyPair> => new Promise<KeyPair>((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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user