Code: Select all
*Text = UTF8("This is an encoded string")
Encoded$ = Base64Encoder(*Text, MemorySize(*Text))
Debug "Encoded: " + Encoded$
*DecodedBuffer = AllocateMemory(1024)
Base64Decoder(Encoded$, *DecodedBuffer, 1024)
Debug "Decoded: " + PeekS(*DecodedBuffer, -1, #PB_UTF8)
Code: Select all
VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZwA=
Code: Select all
VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw==
Here's my website's PHP script if it helps:
Code: Select all
<?php
$text = "This is an encoded string";
$text = base64_encode($text);
echo $text;
?>