API for base64
- ()
by Stuart Sierra
Full namespace name:
clojure.contrib.base64
Overview
Base-64 encoding and decoding.
This is mainly here as an example. It is much slower than the
Apache Commons Codec implementation or sun.misc.BASE64Encoder.
Public Variables and Functions
decode
function
Usage: (decode str-reader out)
Decodes base64-encoded content from str-reader. Writes resulting bytes to out.
Source
decode-str
function
Usage: (decode-str s)
(decode-str s encoding)
Decodes base64-encoded String using encoding. Encoding defaults to UTF-8.
Source
encode
function
Usage: (encode input output alphabet line-length)
Encodes bytes of input, writing Base 64 text on output. alphabet
is a 65-character String containing the 64 characters to use in the
encoding; the 65th character is the pad character. line-length is
the maximum number of characters per line, nil for no line breaks.
Source
encode-str
function
Usage: (encode-str s)
(encode-str s encoding line-length)
Encodes String in base 64; returns a String. If not specified,
encoding is UTF-8 and line-length is nil.
Source