This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
org.bouncycastle.crypto.InvalidCipherTextException: pad block corrupted
Really need some help on this.. have been stuck with it for the whole day and have no idea what is it that's going wrong.
If you are certain that correct padding is being used then based on experience I suspect the key you are using is not the one used to encrypt the data. A key mismatch still allows basic decryption but the resulting padding will be invalid.
Of course if one had a view of the code used to encrypt then one might be able to give a more definite diagnosis.