I am making an Android application and I want to encrypt a String before sending it to a DataBase, and encrytpion is correct. The problem happens when decrypting the String beca
From the general perspective , I think BadPaddingException can be due to the following reasons:
i> Incorrect size of the data for the encryption algorithm.
ii> Different keys are being used to encrypt & decrypt data.