code: public static byte[] encode(byte[] in) {
          return org.apache.commons.codec.binary.Base64.encodeBase64(in);
      }
docs: Encodes bytes to base 64, returning bytes.
  
  @param in bytes to encode
  @return encoded bytes