Hi,
I had been working on the encryption and decryption process..
I repeatedly facing the problem of
javax.crypto.BadPaddingException: Given final block not properly padded
This problem arises whenever i try to decrypt. In the
java API documentation here its specified as
Note: under doFinal method its specified as
if any exception is thrown, this cipher object may need to be reset before it can be used
again. I am not sure how to over come this problem and dont know how to reset the cipher object again.
http://java.sun.com/j2se/1.4.2/docs/api/javax/crypto/Cipher.html#doFinal Thanks
Hari