<h1>Base64 Encoding</h1>

<h2>Synopsis</h2>

<code>(import (data base64))</code>

Encoding and decoding of binary data in format.

<h2>Options</h2>

<h3>syntax: <code>(base64-option
<h3>syntax: <code>(base64-options <i>symbol</i>

The enumeration has the members <tt>uri-safe</tt> and <tt>padding</tt>.

<h2>Operations</h2>

<h3>procedure: <code>(base64-encode
<h3>procedure: <code>(base64-encode <i>bytevector</i>

Encodes the given bytevector into a string. Without options, the result has no padding and uses the default Base64 alphabet. With the <tt>uri-safe</tt> option, the characters "-" and "_" replace "+" and "/" in the alphabet. With the <tt>padding</tt> option, the output may be terminated by "=" characters unless the input length is a multiple of three.

<h3>procedure: <code>(base64-encode

Decodes the given string into a bytevector. Accepts encodings in the standard or uri-safe alphabets and ignores any number of padding characters at the end of the input.