Cryptography
crypt.decrypt
使用从 Base64 解码的 key 和必需的 Base64 IV,通过 AES CBC 或 ECB 解密 Base64 ciphertext。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
使用从 Base64 解码的 key 和必需的 Base64 IV,通过 AES CBC 或 ECB 解密 Base64 ciphertext。
crypt.decrypt(data: string, key: string, iv: string, mode?: "CBC" | "ECB" | "AES-CBC" | "AES-ECB"): string
local key = crypt.generatekey()
local ciphertext, iv = crypt.encrypt("hello world", key)
local plaintext = crypt.decrypt(ciphertext, key, iv)
print(plaintext)