This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
A quick search through the forum would have uncovered this thread. Let us know of if that's the problem.
 
Have you checked out Aspose?
 
subject: BadPaddingException using DES
 
jQuery in Action, 3rd edition