public static byte[] encode(byte[] input)
    {
        return encode(input, 0, input.length);
    }
Fast Base 64 encode as described in RFC 1421.
protostuff-api/src/main/java/io/protostuff/B64Code.java