klyn.cryptography.RSAKeyPair.RSAKeyPair
constructor
public RSAKeyPair(privateKeyPem as String, publicKeyPem as String, bits as Int):
Description

Creates a PEM-encoded RSA key pair.

Parameters
ParameterDescription
privateKeyPemPrivate key in PEM format.
publicKeyPemPublic key in PEM format.
bitsRSA modulus size in bits.
Example
import klyn.cryptography

keys = RSAKeyPairGenerator().generateKeyPair()
copy = RSAKeyPair(keys.privateKeyPem, keys.publicKeyPem, keys.bits)
print(copy.bits)