Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Artifact ID: | c3e526e95887fb6026042497c100145bcb4e261d |
---|---|
Page Name: | (data base64) |
Date: | 2016-05-21 12:07:22 |
Original User: | murphy |
Parent: | efe572bdb9f201d866351a3148fe02cbb1d5aa2e (diff) |
Content
Base64 Encoding
Synopsis
(import (data base64))
Encoding and decoding of binary data in Base64 format.
Options
syntax: (base64-option symbol)
syntax: (base64-options symbol ...)
The enumeration has the members uri-safe and padding.
Operations
procedure: (base64-encode bytevector)
procedure: (base64-encode bytevector options)
Encodes the given bytevector into a string. Without options, the result has no padding and uses the default Base64 alphabet. With the uri-safe option, the characters "-" and "_" replace "+" and "/" in the alphabet. With the padding option, the output may be terminated by "=" characters unless the input length is a multiple of three.
procedure: (base64-encode string)
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.