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