Use 2048 bit RSA, because it's more secure and won't have the same performance penalty as on the bridge

This commit is contained in:
Alex Gleason 2023-07-23 11:15:52 -05:00
parent f8674ed053
commit 2d5f9db5c3
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ import { Conf } from '@/config.ts';
import { generateSeededRsa, LRUCache, publicKeyToPem, secp } from '@/deps.ts'; import { generateSeededRsa, LRUCache, publicKeyToPem, secp } from '@/deps.ts';
const opts = { const opts = {
bits: 1024, bits: 2048,
}; };
const rsaCache = new LRUCache<string, Promise<string>>({ max: 1000 }); const rsaCache = new LRUCache<string, Promise<string>>({ max: 1000 });