Artifact
c3e526e95887fb6026042497c100145bcb4e261d:
Wiki page
[(data base64)] by
murphy
2016-05-21 12:07:22.
D 2016-05-21T12:07:22.070
L (data\sbase64)
P efe572bdb9f201d866351a3148fe02cbb1d5aa2e
U murphy
W 1178
<h1>Base64 Encoding</h1>
<h2>Synopsis</h2>
<code>(import (data base64))</code>
Encoding and decoding of binary data in [https://en.wikipedia.org/wiki/Base64|Base64] format.
<h2>Options</h2>
<h3>syntax: <code>(base64-option <i>symbol</i>)</code></h3>
<h3>syntax: <code>(base64-options <i>symbol</i> ...)</code></h3>
The enumeration has the members <tt>uri-safe</tt> and <tt>padding</tt>.
<h2>Operations</h2>
<h3>procedure: <code>(base64-encode <i>bytevector</i>)</code></h3>
<h3>procedure: <code>(base64-encode <i>bytevector</i> <i>options</i>)</code></h3>
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 <i>string</i>)</code></h3>
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.
Z f32621ee1727cb2c320f00815d0c7f3a