This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes InvalidCipherTextException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "InvalidCipherTextException" Watch "InvalidCipherTextException" New topic
Author

InvalidCipherTextException

Tapan Paul
Greenhorn

Joined: Jul 21, 2003
Posts: 9
I am trying to test the Bouncy castle API for data encryption and decrytion using DES technique.
During encryption and decryption the block of data I need to maintain, I need to padd the user data,I am not clear what is the minimum number of block. Because I am getting exception InvalidCipherTextException,
some data like last block corrupted.

Can you please help me regarding padding and all.

Actually I have one client server architecture, midlet and servlet, now first user send userid and password and after authentication server send an encrypted message, but I am getting the exception "InvalidCipherTextException",
some data like last block corrupted.

Thanks and Regards
Tapan
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: InvalidCipherTextException
 
Similar Threads
BadPaddingException with DES
java code for DES algorithm
help needed........
BadPadding in the final block Exception
Userdefined Exception