Also show exponent
This commit is contained in:
parent
b0562e1497
commit
ebe467260a
@ -55,7 +55,9 @@ class PkDecoratorRSA(PkDecorator):
|
|||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
pk_crypto = self.pk.to_cryptography_key()
|
pk_crypto = self.pk.to_cryptography_key()
|
||||||
return "RSA Private key %d bits" % pk_crypto.key_size
|
return "RSA Private key %d bits (exponent %d)" % (
|
||||||
|
pk_crypto.key_size,
|
||||||
|
pk_crypto.private_numbers().public_numbers.e)
|
||||||
|
|
||||||
|
|
||||||
class PkDecoratorDSA(PkDecorator):
|
class PkDecoratorDSA(PkDecorator):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user