Aliases
None.Arguments
number
required
The number of random bytes before encoding. Converted to an integer, then checked against 0..1048576.
Returns
string
Base64 text containing the generated random bytes.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Generates secure random bytes and returns them Base64-encoded.
crypt.generatebytes(size: number): string
local encoded = crypt.generatebytes(16)
print(#crypt.base64decode(encoded))
