public static getInstance(algorithm as String) as KeyPairGenerator throws CryptoException:
Compatibility factory for dynamic algorithm selection.
The preferred API is RSAKeyPairGenerator().
| Parameter | Description |
|---|---|
algorithm | Key-pair algorithm. |
Ready-to-use generator.
import klyn.cryptography
generator = KeyPairGenerator.getInstance("RSA")
print(generator.algorithm)