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:
parent
f8674ed053
commit
2d5f9db5c3
|
@ -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 });
|
||||||
|
|
Loading…
Reference in New Issue