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