public static getInstance(algorithm as String) as KeyGenerator throws CryptoException:
Compatibility factory for dynamic algorithm selection.
The preferred API is AESKeyGenerator().
| Parameter | Description |
|---|---|
algorithm | Secret-key algorithm. |
Ready-to-use generator.
import klyn.cryptography
generator = KeyGenerator.getInstance("AES")
print(generator.algorithm)