Retrofit Call
package com.keyboard.trydemo ; import android.util.Base64 ; import java.util.Arrays ; import javax.crypto.Cipher ; import javax.crypto.spec.IvParameterSpec ; import javax.crypto.spec.SecretKeySpec ; public class Yo_Yo { private static final String KEY = "mastertunes" ; // Replace with your key private static final String INIT_VECTOR = "RandomInitVector" ; // Replace with your IV public static String det (String encrypted) { try { IvParameterSpec iv = new IvParameterSpec( INIT_VECTOR .getBytes( "UTF-8" )) ; byte [] paddedKey = Arrays. copyOf ( KEY .getBytes( "UTF-8" ) , 16 ) ; SecretKeySpec skeySpec = new SecretKeySpec(paddedKey , "AES" ) ; Cipher cipher = Cipher. getInstance ( "AES/CBC/PKCS5PADDING" ) ; cipher.init(Cipher. DECRYPT_MODE , skeySpec , iv) ; byte [] original = cipher.doFinal(Base64. decode (encrypted , Base64. DEFAULT )) ...