API for base64 - clojure-contrib v1.1 (stable)

by Stuart Sierra

Usage:
(ns your-namespace
  (:require clojure.contrib.base64))

Overview

Base-64 encoding and (maybe later) 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



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
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.