I need to encode a short String as base 64 in GWT and decode the base 64 string on the server. Anyone have utility class or library for this?
You can use native JavaScript for this on the client on all browsers except IE ≤ 9. On the server you can use one of the official classes.
Java/GWT:
private static native String b64decode(String a) /*-{ return window.atob(a); }-*/;
Encode is btoa.
btoa