Cryptography
crypt.generatekey
Erzeugt 32 zufaellige raw bytes mit random byte generator und gibt sie Base64-encoded als Lua-String zurueck.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Erzeugt 32 zufaellige raw bytes mit random byte generator und gibt sie Base64-encoded als Lua-String zurueck.
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)