This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
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.
reubin haz
Ranch Hand
Joined: May 12, 2005
Posts: 287
posted
0
here is my code in java:
here is the code in perl:
where I hardcoded value for $a_str, which is generated from java. But $de_base64 prints out some corrupted characters....