Created
August 31, 2017 21:42
-
-
Save dfrankel33/e16c711492cae1d04510f4e6d510dbaf to your computer and use it in GitHub Desktop.
RCL Functions for Base64 Decoding & Encoding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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