i want to share this Base64 Encoder/Decoder app i made just to try the webviewer extension that allows us to apply javascript coded functions on data. in this case, the functions for encoding and decoding base64 are already standard functions in javascript. the full messages being passed are shown in the examples below. (i “borrowed” the server that @actech provided in one of his recent examples to illustration this webviewer extension. thank you!):
encoding:
<script>function encode(data){return btoa(data)}; ThunkableWebviewerExtension.postMessage(encode("142857"));</script>
decoding:
<script>function encode(data){return atob(data)}; ThunkableWebviewerExtension.postMessage(encode("MTQyODU3"));</script>
here’s a copy of the project:
https://x.thunkable.com/copy/3c59e995f8e07de1c663187ad609fa16