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