The base64 encode verb is a way of encoding binary data to base64. This can be useful when needing to send binary data, such as a picture or an iTunes cover or something over a websocket or other text only pipe. It could also be useful when creating an authentication string to include with an http request or other such communication.
The verb accepts any data type as it’s default parameter and will return a text string of the base64 encoded data
set myEncodedData to base64 encode “some binary or textual information” write log myEncodedData