klyn.cryptography.KeyGenerator.initialize
method
public initialize(sizeBits as Int) as Void throws CryptoException:
Description

Configures the generated key size.

Parameters
ParameterDescription
sizeBitsKey size in bits.
Throws
  • CryptoException when the size is invalid.
Example
import klyn.cryptography

generator = AESKeyGenerator()
generator.initialize(256)