Scilab provides built-in support for base64 encoding/decoding through its base64encode and base64decode functions.
The string encodes to slightly different values with the standard and URL-safe base64 encoders (trailing + vs -) but they both decode to the original string as desired.
To run this Scilab script, save it to a file (e.g., base64_encoding.sce) and execute it in Scilab:
Note that Scilab’s base64 functions work with ASCII strings by default. For handling non-ASCII characters or binary data, you might need to use additional string manipulation or binary data handling functions.