From 3894e7dfe7725ed70d4b7a778594daa342d9331a Mon Sep 17 00:00:00 2001 From: cronekorkn Date: Wed, 19 Oct 2022 00:36:20 +0200 Subject: [PATCH] cache rsa keys longer --- libs/rsa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/rsa.py b/libs/rsa.py index 95d0969..e2666fb 100644 --- a/libs/rsa.py +++ b/libs/rsa.py @@ -22,7 +22,7 @@ class PRNG(object): return result -@cache_to_disk() +@cache_to_disk(30) def _generate_deterministic_rsa_private_key(secret_bytes): return RSA.generate(2048, randfunc=PRNG(secret_bytes)).export_key('DER')