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

Short alias for initialize.

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

generator = AESKeyGenerator()
generator.init(256)