1.download commons-codec-1.8-bin.zip
2.
import org.apache.commons.codec.binary.Base64;
3.
byte[] decoded = Base64.decodeBase64("enpnb2RAaG90bWFpbC5jb20==");
System.out.println(new String(decoded, "UTF-8") + "\n");
byte[] encoded = Base64.encodeBase64("zzgod@hotmail.com".getBytes());
System.out.println(new String(encoded, "UTF-8") + "\n");