public class AESKeyGenerator extends KeyGenerator:
AES secret-key generator.
Generated keys are returned as Base64 strings so they can be passed directly to Cipher.aesEncrypt(...).
import klyn.cryptography generator = AESKeyGenerator() generator.initialize(256) key = generator.generateKey() print(key)
| Modifier and Type | Member | Description |
|---|---|---|
| public | AESKeyGenerator | Creates a new AES key generator. |
| Modifier and Type | Member | Description |
|---|---|---|
| public override | generateKeygenerateKey() as String throws CryptoException: |
Performs a cryptographic operation. |
| public override | initializeinitialize(sizeBits as Int) as Void throws CryptoException: |
Performs a cryptographic operation. |