* @return String
* @throws IOException
*/
public static String encodeString(String str) throws IOException {
Base64 base64 = new Base64();
String encodedStr = new String(base64.encodeBase64(str.getBytes()));
return (encodedStr.trim());
}
/**
* Decode a string using Base64 encoding.