การเข้ารหัส

base64_decode

ถอดรหัสสตริงที่เข้ารหัส base64

ไวยากรณ์

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

Arguments

ชื่อชนิดคำอธิบาย
datastringสตริงที่เข้ารหัส base64

Returns

ชื่อชนิดคำอธิบาย
decodedstringสตริงถอดรหัส base64

คำอธิบาย

ถอดรหัสสตริงที่เข้ารหัส base64

เรียกด้วย parameter 1 ค่า: data ตาราง arguments อธิบายค่าที่จำเป็นและค่าที่ปรับพฤติกรรม

ส่งคืน decoded (string) ใช้ตาราง returns เพื่อแยกค่าที่สำเร็จ ผลลัพธ์ nil และ error ที่จัดการต่อได้

ตัวอย่าง

ตัวอย่างการเรียกใช้ด้วยค่าตัวอย่าง

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