From 2093c4760b6736c577d77af677bda14c45a79b0f Mon Sep 17 00:00:00 2001 From: Martynas Sklizmantas Date: Sun, 2 Jan 2022 09:30:31 +0200 Subject: [PATCH] increasing rsa key size --- bookwyrm/signatures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/signatures.py b/bookwyrm/signatures.py index 772d39cce..3102f8da2 100644 --- a/bookwyrm/signatures.py +++ b/bookwyrm/signatures.py @@ -15,7 +15,7 @@ MAX_SIGNATURE_AGE = 300 def create_key_pair(): """a new public/private key pair, used for creating new users""" random_generator = Random.new().read - key = RSA.generate(1024, random_generator) + key = RSA.generate(2048, random_generator) private_key = key.export_key().decode("utf8") public_key = key.public_key().export_key().decode("utf8")