Here you can find the source of base64en(String string)
public static String base64en(String string)
//package com.java2s; // The license under which this software is released can be accessed at: import javax.xml.bind.DatatypeConverter; public class Main { public static String base64en(String string) { return DatatypeConverter.printBase64Binary(string.getBytes()); }//w w w . j a va 2 s . c o m }