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

Parameter | Description
--- | ---
`value` | Serialized key pair map.

Returns

RSA key pair.

Example

    import klyn.cryptography

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