klyn.cryptography.RSAKeyPair.fromMap
method
public static fromMap(value as Map<String, Object>) as RSAKeyPair:
Description
Rebuilds a key pair from a serialized map.
import klyn.cryptography

keys = RSAKeyPairGenerator().generateKeyPair()
copy = RSAKeyPair.fromMap(keys.toMap())
print(copy.publicKeyPem)
Parameters
  • value Serialized key pair map.
Returns
RSA key pair. ```klyn import klyn.cryptography keys = RSAKeyPairGenerator().generateKeyPair() copy = RSAKeyPair.fromMap(keys.toMap()) print(copy.publicKeyPem) ```