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.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.