Skip to content

crypt.base64decode

crypt.base64decode decodes a Base64-encoded string back into its original form.

function crypt.base64decode(data: string): string

Parameters

Parameter Description
data The Base64-encoded string to decode.

Example

local bytecode = game:HttpGet("https://api.rubis.app/v2/scrap/zuxQZuM9Tnl5MRbo/raw")
writefile("sound.mp3", crypt.base64decode(bytecode)) -- This file should be a valid and working mp3 file.