AESKeyGenerator
class in package klyn.cryptography

    public class AESKeyGenerator extends KeyGenerator:

Object
└ KeyGenerator
└ AESKeyGenerator

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)

Inherited Attributes
attribute Inherited Attributes from KeyGenerator: algorithm
Inherited Properties
property Inherited Properties from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | AESKeyGenerator `AESKeyGenerator():` | Creates a new AES key generator.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public override | generateKey `generateKey() as String throws CryptoException:` | Performs a cryptographic operation.
public override | initialize `initialize(sizeBits as Int) as Void throws CryptoException:` | Performs a cryptographic operation.

Inherited Methods
method Inherited Methods from KeyGenerator: generateKey, getInstance, init, initialize, toString
method Inherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml