1

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();
        }
kalai vani
  • 289
  • 2
  • 4
  • 21

1 Answers1

-1

In android, use the android.util.Base64 class to do the encoding and decoding.

Docs: https://developer.android.com/reference/android/util/Base64.html

Ayush Gupta
  • 8,716
  • 8
  • 59
  • 92