public static fromMap(value as Map<String, Object>) as RSAKeyPair:
Rebuilds a key pair from a serialized map.
RSA key pair. klyn import klyn.cryptography keys = RSAKeyPairGenerator().generateKeyPair() copy = RSAKeyPair.fromMap(keys.toMap()) print(copy.publicKeyPem)