I need to do encryption and Decryption in android,
Now I use 'AES' Algorithm Encryption,I got Some Encryption Values Like'�*��1FO��' but I need Output like this '38533F4B3F3852203F443F3F283F3F'
Any one have idea..
My Code for Encryption
IvParameterSpec _IVParamSpec = new IvParameterSpec(IV);
SecretKeySpec sks = new SecretKeySpec(KEY, "AES");
cipher.init(Cipher.ENCRYPT_MODE, sks,_IVParamSpec);
/*byte[] bt = new byte[256] ;
bt = hexStringToByteArray(strToDecrypt);*/
//final String decryptedString1 = new String(cipher.doFinal(bt));
//final String decryptedString = new String(cipher.doFinal(strToDecrypt.getBytes("UTF-16LE")));
final String decryptedString2 = new String(cipher.doFinal(Base64.decode(strToDecrypt, Base64.NO_WRAP)));
String StrHex = toHex(decryptedString);
final String decryptedString1 = new String(cipher.doFinal(strToDecrypt.getBytes()));