public RSAKeyPair(privateKeyPem as String, publicKeyPem as String, bits as Int):
Creates a PEM-encoded RSA key pair.
| Parameter | Description |
|---|---|
privateKeyPem | Private key in PEM format. |
publicKeyPem | Public key in PEM format. |
bits | RSA modulus size in bits. |
import klyn.cryptography keys = RSAKeyPairGenerator().generateKeyPair() copy = RSAKeyPair(keys.privateKeyPem, keys.publicKeyPem, keys.bits) print(copy.bits)