RSAKeyPairGenerator
class in package klyn.cryptography

    public class RSAKeyPairGenerator extends KeyPairGenerator:

Object
└ KeyPairGenerator
└ RSAKeyPairGenerator

RSA key-pair generator.

Generated keys are returned in PEM format.

    import klyn.cryptography

    generator = RSAKeyPairGenerator()
    generator.initialize(2048)
    keys = generator.generateKeyPair()
    print(keys.bits)

Inherited Attributes
attribute Inherited Attributes from KeyPairGenerator: algorithm
Inherited Properties
property Inherited Properties from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | RSAKeyPairGenerator `RSAKeyPairGenerator():` | Creates a new RSA key-pair generator.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public override | generateKeyPair `generateKeyPair() as RSAKeyPair throws CryptoException:` | Performs a cryptographic operation.
public override | initialize `initialize(bits as Int) as Void throws CryptoException:` | Performs a cryptographic operation.

Inherited Methods
method Inherited Methods from KeyPairGenerator: generateKeyPair, getInstance, init, initialize, toString
method Inherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml