Cryptography
crypt.generatebytes
使用 random byte generator 生成随机字节,并以 Base64-encoded Lua string 返回。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
使用 random byte generator 生成随机字节,并以 Base64-encoded Lua string 返回。
crypt.generatebytes(size: number): string
local encoded = crypt.generatebytes(16)
local raw = base64_decode(encoded)
print(encoded)
print(#encoded)
print(#raw)