public nextHex(sizeBytes as Int) as String throws CryptoException:
Generates random data encoded as hexadecimal.
| Parameter | Description |
|---|---|
sizeBytes | Number of random bytes to generate. |
Lower-case hexadecimal text.
import klyn.cryptography random = SecureRandom() print(random.nextHex(16))