List of utility methods to do Base64 Decode
byte[] | base16decode(String base16Str) basedecode byte[] ret = new byte[base16Str.length() / 2]; int j = 0; for (int i = 0; i < base16Str.length(); i += 2) { ret[j++] = (byte) (Integer.parseInt("" + base16Str.charAt(i) + base16Str.charAt(i + 1), 16)); return ret; |
byte[] | base64Decode(final String text) base Decode byte[] res = null; try { res = Base64.decodeBase64(text.getBytes()); } catch (Exception e) { e.printStackTrace(); return res; |
String | base64ToText(String stringInput) base To Text String stringFromBase = new String(Base64.decode(stringInput, Base64.DEFAULT)); return stringFromBase; |
String | from64(String a) from return new String(Base64.decode(a, Base64.DEFAULT)); |
byte[] | fromBase64(String encoded) from Base if (encoded == null) { return null; byte[] result; result = Base64.decode(encoded, MAGNET_BASE64_FLAGS); return result; |
String | decryptBase64Text(String key, String src) decrypt Base Text byte[] bytes = Base64.decode(src, Base64.DEFAULT); return decryptBytes(key, bytes); |