Cryptography
crypt.generatekey
random byte generator로 32개의 임의 raw bytes를 생성하고 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로 32개의 임의 raw bytes를 생성하고 Base64-encoded Lua string으로 반환합니다.
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)