Mật mã

base64_decode

Giải mã chuỗi được mã hóa base64.

Cú pháp

base64_decode(data: string): string
Alias base64decodebase64.decodecrypt.base64.decodecrypt.base64_decodecrypt.base64decode

Đối số

TênKiểuMô tả
datastringChuỗi được mã hóa base64.

Giá trị trả về

TênKiểuMô tả
decodedstringChuỗi được giải mã base64.

Mô tả

Giải mã chuỗi được mã hóa base64.

Goi voi 1 parameter: data. Bang arguments giai thich gia tri nao bat buoc va gia tri nao chi tinh chinh hanh vi.

Tra ve decoded (string). Dung bang returns de tach gia tri thanh cong, ket qua nil va loi co the xu ly.

Ví dụ

Vi du goi ham voi gia tri mau.

local result = base64_decode("example")
print(result)