From 2d5f9db5c3715d9ab37722f49b59eade89562ac7 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 23 Jul 2023 11:15:52 -0500 Subject: [PATCH] Use 2048 bit RSA, because it's more secure and won't have the same performance penalty as on the bridge --- src/utils/rsa.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/rsa.ts b/src/utils/rsa.ts index 820e0a4..b6865b4 100644 --- a/src/utils/rsa.ts +++ b/src/utils/rsa.ts @@ -2,7 +2,7 @@ import { Conf } from '@/config.ts'; import { generateSeededRsa, LRUCache, publicKeyToPem, secp } from '@/deps.ts'; const opts = { - bits: 1024, + bits: 2048, }; const rsaCache = new LRUCache>({ max: 1000 });