javax.crypto.BadPaddingException
Ok, so the problem is that you are converting the encrypted bytes to a hex string (using the asHex method) but are not converting the hex string back to a byte array correctly for decryption. You can’t use getBytes. You can use the following method to convert a hex string to a byte array: public … Read more