You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
com.app.utils.SecurePreferences$SecurePreferencesException: javax.crypto.BadPaddingException: pad block corrupted
at com.app.utils.SecurePreferences.convert(SecurePreferences.java:193)
at com.app.utils.SecurePreferences.decrypt(SecurePreferences.java:179)
at com.app.utils.SecurePreferences.getString(SecurePreferences.java:136)
Any idea why ?
Thanks
Shimi
The text was updated successfully, but these errors were encountered:
I think I figured out the problem. I was using the secure preferences with dagger as a singleton in a multi threaded env. making the getString and putValue methods synchronized solves the problem.
com.app.utils.SecurePreferences$SecurePreferencesException: javax.crypto.BadPaddingException: pad block corrupted
at com.app.utils.SecurePreferences.convert(SecurePreferences.java:193)
at com.app.utils.SecurePreferences.decrypt(SecurePreferences.java:179)
at com.app.utils.SecurePreferences.getString(SecurePreferences.java:136)
Any idea why ?
Thanks
Shimi
The text was updated successfully, but these errors were encountered: