public toMap() as Map<String, Object>:
Converts this key pair to a serializable map.
Map containing privateKeyPem, publicKeyPem and bits. klyn import klyn.cryptography keys = RSAKeyPairGenerator().generateKeyPair() print(keys.toMap()["bits"])
privateKeyPem
publicKeyPem
bits
klyn import klyn.cryptography keys = RSAKeyPairGenerator().generateKeyPair() print(keys.toMap()["bits"])