I have integrated this library in one of my application, I am using 3.0.0 version. There is no issue till target sdk version 30, Recently I have updated my application target sdk version 32, and now getting crash while decrypt value for some users. And this crash occurs in all os version, not version specific and device specific.
Fatal Exception: java.lang.IllegalStateException: javax.crypto.BadPaddingException: error:1e000065:Cipher functions:OPENSSL_internal:BAD_DECRYPT
at com.github.hussainderry.securepreferences.crypto.CipherServiceImpl.decrypt(CipherServiceImpl.java:62)
at com.github.hussainderry.securepreferences.crypto.Cryptor.decryptFromBase64(Cryptor.java:37)
at com.github.hussainderry.securepreferences.SecurePreferences.decryptFromBase64(SecurePreferences.java:2)
at com.github.hussainderry.securepreferences.SecurePreferences.getString(SecurePreferences.java:13)
at com.github.hussainderry.securepreferences.SecurePreferences.getBoolean(SecurePreferences.java:1)
at [MY PACKAGE NAME HERE].LoginActivity.onClick(LoginActivity.java:39)
at android.view.View.performClick(View.java:7792)
at android.view.View.performClickInternal(View.java:7769)
at android.view.View.access$3800(View.java:910)
at android.view.View$PerformClick.run(View.java:30218)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8669)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)