I am facing this while using java.base64 issue ClassnotFoundException:Didn't find class "java.util.Base64" on path: DexPathList in java.util.Base64
.I want to decrypt the encrypted text.So I am using this code and JAVA 8.Please help me
String encrptedtext = "QW28YjzFVa70mG/o/itYGGoEaV/0EBFY+jnxClcgw=";//secret key that boy given
byte[] base64decodedBytes = Base64.getDecoder().decode(encrptedtext);
try {
Log.i("EE", "decryptedString---" + new String(base64decodedBytes, "utf-8"));
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}