I need to encode a string in Java and php where the result must be the same.
The following conditions are given:
I changed byte[] keyBytes= new byte[16]; to byte[] keyBytes= new byte[32]; in getKeyBytes method then it worked fine.
byte[] keyBytes= new byte[16];
byte[] keyBytes= new byte[32];
getKeyBytes