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

- privateKeyPem Private key in PEM format.
- publicKeyPem Public key in PEM format.
- bits RSA modulus size in bits. ```klyn import klyn.cryptography keys = RSAKeyPairGenerator().generateKeyPair() copy = RSAKeyPair(keys.privateKeyPem, keys.publicKeyPem, keys.bits) print(copy.bits) ```