We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,633 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
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.

1
Contributor
1
Reply
27 Minutes
Discussion Span
1 Year Ago
Last Updated
2
Views
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

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0597 seconds using 2.64MB