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