Cryptography
crypt.generatekey
Gera 32 raw bytes aleatorios com random byte generator e os retorna Base64-encoded como uma string Lua.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Gera 32 raw bytes aleatorios com random byte generator e os retorna Base64-encoded como uma string Lua.
crypt.generatekey(): string
local key = crypt.generatekey()
local raw = base64_decode(key)
local ciphertext, iv = crypt.encrypt("hello world", key)
print(key)
print(#raw)
print(ciphertext, iv)