Start New Discussion Reply to this Discussion Encryption in j2me and decryption in java
Hello,
I have a small issue. I am encrypting the data in J2ME using DES.
When I send the data to the server, the encrypted text which has special characters is changed into "?" (question mark) and because of this the decryption doesnt work, it gives bad padding exception.
How to solve this one??
Plz help...
Thanks.
27 Minutes
Discussion Span
abhijeet P
Newbie Poster
20 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Hello,
I have a small issue. I am encrypting the data in J2ME using DES.
When I send the data to the server, the encrypted text which has special characters is changed into "?" (question mark) and because of this the decryption doesnt work, it gives bad padding exception.
How to solve this one??
Plz help...
Thanks.
I tried to encode the encrypted text with BASE64 and then on server side decoding the text first and then decrypting
It is working for some inputs and for some inputs it is giving bad padding exception
abhijeet P
Newbie Poster
20 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
© 2013 DaniWeb® LLC
Page rendered in 0.0597 seconds
using 2.64MB