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 the BaseEncoding class provided by Guava.
And don't forget to add the following line to your GWT module XML:
The BaseEncoding class can be used on both the GWT client side and server side.
You can have a look at https://github.com/mooreds/gwt-crypto
It provides base64 encoding to GWT.
Add the import below :
Don't forget to add the following line to your GWT module XML: