This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
Similar Threads
encryption decryption
convert String data as PublicKey or PrivateKey
RSA Cipher
Cryptography - deciphering doesn't yield the same text
signer information does not match? Help...