Argümanlar
string
gerekli
Lua string icinden okunan plaintext byte degerleri.
string
gerekli
AES icine aktarilmadan once decode edilen Base64 key.
string
CBC veya CTR icin optional Base64 IV. CBC veya CTR icin verilmezse AES block size boyutunda yeni bir IV uretilir.
"CBC" | "ECB" | "CTR" | "AES-CBC" | "AES-ECB" | "AES-CTR"
AES mode. Varsa AES- prefix kaldirilir. Varsayilan deger AES-CBC. CBC ve ECB crypto library DEFAULT_PADDING kullanir; CTR padding kullanmaz.
Dönüşler
string
Base64-encoded ciphertext.
string | nil
CBC ve CTR icin Base64-encoded IV; ECB icin nil.