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

Converts this key pair to a serializable map.

Returns

SortedMap containing privateKeyPem, publicKeyPem and bits.

Example
import klyn.cryptography

keys = RSAKeyPairGenerator().generateKeyPair()
print(keys.toMap()["bits"])