chickadee » base64 » base64-encode

(base64-encode IN [OUT]) procedure

Encodes IN (a string or port) to base64 text on optional output port OUT, and returns OUT.

If the output port is omitted, the encoded output is written to a fresh string and returned.