generate 2048 bits keys instead of 384 bits keys when needed. Fixes #7036
This commit is contained in:
parent
712ca88d6c
commit
c467e44370
|
@ -87,7 +87,7 @@ class Secrets:
|
|||
try:
|
||||
pk = self.privkeys[account]
|
||||
except KeyError:
|
||||
pk = Crypto.PublicKey.RSA.generate(384, crypto.random_bytes)
|
||||
pk = Crypto.PublicKey.RSA.generate(2048, crypto.random_bytes)
|
||||
|
||||
self.privkeys[account] = pk
|
||||
self.save()
|
||||
|
|
Loading…
Reference in New Issue