File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Security and the fly likes BadPaddingException: Data must start with zero Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "BadPaddingException: Data must start with zero" Watch "BadPaddingException: Data must start with zero" New topic
Author

BadPaddingException: Data must start with zero

Anita Singh
Greenhorn

Joined: May 18, 2007
Posts: 17
Hi,
I have saved the password in database in Encrypted form successfully.But it shows me "javax.crypto.BadPaddingException: Data must start with zero" Exception while Decryption.I m posting here both the Encryption & Decryption code.Please Help Me.


/*Encryption program is working fine*/
************************************************************************



Please help me
Thanks in Advance


SCJP 5.0 100%
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
It seems like you are using one set of key pair for encrypting and another for decrypting.


Rahul Bhattacharjee
LinkedIn - Blog
Anita Singh
Greenhorn

Joined: May 18, 2007
Posts: 17
Thanks Rahul
I got it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: BadPaddingException: Data must start with zero