Skip to content

Instantly share code, notes, and snippets.

@dfrankel33
Created August 31, 2017 21:42
Show Gist options
  • Save dfrankel33/e16c711492cae1d04510f4e6d510dbaf to your computer and use it in GitHub Desktop.
Save dfrankel33/e16c711492cae1d04510f4e6d510dbaf to your computer and use it in GitHub Desktop.
RCL Functions for Base64 Decoding & Encoding
define base64_encode($string) return $value do
$response = http_post( url: join(["https://www.base64encode.org/enc/", $string]) )
$1 = split($response["body"], "Result goes here...\">")
$value = split($1[1], "</textarea>")
$value = $value[0]
end
define base64_decode($string) return $value do
$response = http_post( url: join(["https://www.base64decode.org/dec/", $string]) )
$1 = split($response["body"], "Result goes here...\">")
$value = split($1[1], "</textarea>")
$value = $value[0]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment