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

Parameter | Description
--- | ---
`privateKeyPem` | Private key in PEM format.
`publicKeyPem` | Public key in PEM format.
`bits` | RSA modulus size in bits.

Example

    import klyn.cryptography

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