KeyGenerator
classin packageklyn.cryptography
public abstract class KeyGenerator extends Object:
Abstract base class for symmetric key generators.
The primary public AES API is exposed through `AESKeyGenerator`.
import klyn.cryptography
generator as KeyGenerator = AESKeyGenerator()
generator.initialize(256)
print(generator.generateKey())
Fields
| Modifier and Type |
Member |
Description |
| public readonly |
algorithm |
Canonical algorithm name. |
Methods
| Modifier and Type |
Member |
Description |
| public |
generateKey |
Generates a ready-to-use encoded secret key. |
| public static |
getInstance |
Compatibility factory for dynamic algorithm selection. |
| public |
init |
Short alias for `initialize`. |
| public |
initialize |
Configures the generated key size. |
| public override |
toString |
No summary. |