This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Security and the fly likes BadPaddingException using DES Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "BadPaddingException using DES" Watch "BadPaddingException using DES" New topic
Author

BadPaddingException using DES

Aravind Ramanujam
Greenhorn

Joined: Dec 14, 2004
Posts: 16
I'm getting javax.crypto.BadPaddingException: Given final block not properly padded while trying to decrypt using DES. Here is the code snippet:



Please let me know if i'm doing anything wrong here. Any help is appreciated
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
A quick search through the forum would have uncovered this thread. Let us know of if that's the problem.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: BadPaddingException using DES
 
Similar Threads
Cryptography - deciphering doesn't yield the same text
Encrypt data before storing database
error coming while decrypting...
Exception in thread "main" java.security.InvalidKeyException:
javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8