KeyPairGenerator
classin packageklyn.cryptography
public abstract class KeyPairGenerator extends Object:
Abstract base class for asymmetric key-pair generators.
The primary public RSA API is exposed through `RSAKeyPairGenerator`.
import klyn.cryptography
generator as KeyPairGenerator = RSAKeyPairGenerator()
generator.initialize(2048)
print(generator.generateKeyPair().bits)
Fields
| Modifier and Type |
Member |
Description |
| public readonly |
algorithm |
Canonical algorithm name. |
Methods
| Modifier and Type |
Member |
Description |
| public |
generateKeyPair |
Generates a key pair. |
| public static |
getInstance |
Compatibility factory for dynamic algorithm selection. |
| public |
init |
Short alias for `initialize`. |
| public |
initialize |
Configures the key size. |
| public override |
toString |
No summary. |