Skip to main content

Đối số

string
bắt buộc
Base64 ciphertext duoc decode truoc khi giai ma.
string
bắt buộc
Base64 key duoc decode truoc khi truyen vao AES.
string
bắt buộc
Base64 IV duoc decode truoc khi xu ly mode. Doi so nay bat buoc, ke ca voi ECB.
"CBC" | "ECB" | "AES-CBC" | "AES-ECB"
AES mode. Prefix AES- se bi xoa khi co. Mac dinh la AES-CBC.

Giá trị trả về

string
Cac byte plaintext duoc tra ve duoi dang Lua string.

Ví dụ

Giai ma ciphertext do crypt.encrypt tra ve bang IV duoc tra ve.