Hi, I'm running into problem when I'm trying to use AES to encrypt and encode some string and send to another server where there is perl program running which will decode and decrypt it.
I used base 64 encoding in Java and decode it in perl. But it looks like the string get coded does not match between java and perl. How should I solve this problem?
Plus, even after encoding/decoding is working, will perl recognize java's byte array as encrypted value?
There's no "recognition": the server side will either work or not--as long as the data coming in matches whatever format the Perl code is expecting.
As to what your actual problem is--AES is AES, regardless of the platform. Without knowing anything more about how the encryption/decryption is happening, how you're sending the data, etc. it's really difficult to help.