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:
|
try:
|
||||||
pk = self.privkeys[account]
|
pk = self.privkeys[account]
|
||||||
except KeyError:
|
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.privkeys[account] = pk
|
||||||
self.save()
|
self.save()
|
||||||
|
|
Loading…
Reference in New Issue