klyn.cryptography.RSAKeyPair.toMap
method
public toMap() as Map<String, Object>:
Description

Converts this key pair to a serializable map.

Returns

Map containing privateKeyPem, publicKeyPem and bits. klyn import klyn.cryptography keys = RSAKeyPairGenerator().generateKeyPair() print(keys.toMap()["bits"])