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

Rebuilds a key pair from a serialized map.

Parameters
ParameterDescription
valueSerialized key pair map.
Returns

RSA key pair.

Example
import klyn.cryptography

keys = RSAKeyPairGenerator().generateKeyPair()
copy = RSAKeyPair.fromMap(keys.toMap())
print(copy.publicKeyPem)