Hi All:
I am trying to decrypt the data using Blowfish algorithm and am using the same key that was used to encrypt the data.
I am getting the following exception :
javax.crypto.BadPaddingException: Given final block not properly padded
part of the code where i am decrypting the code
-----------------------------------------------
byte[] b =new
String("19BA7C8BEEC31234").getBytes();
Cipher decipher = Cipher.getInstance(essoAlgorithm);
decipher.init(Cipher.DECRYPT_MODE, essoKeySpec);
System.out.println("deciphered is " + new String(decipher.doFinal(b)));
-----------------------------------------------
Can anyone throw some light on how to solve the above exception .
Thanks