This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Other JSE/JEE APIs and the fly likes Encryption/Decryption using Blowfish algorithm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Encryption/Decryption using Blowfish algorithm" Watch "Encryption/Decryption using Blowfish algorithm" New topic

Encryption/Decryption using Blowfish algorithm

ST Moong

Joined: Jul 04, 2001
Posts: 10
I was testing the encryption and decryption using the Blowfish algorithm.
When I ran the program, it is able to encrypt/decrypt at times. Other times, it will throw a BadPaddingException.
Below is the relevant code:
Don't get me started about those stupid light bulbs.
subject: Encryption/Decryption using Blowfish algorithm