Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seeing some of javax.crypto.BadPaddingException: pad block corrupted #1

Open
shimitapiro opened this issue Mar 17, 2014 · 3 comments
Open

Comments

@shimitapiro
Copy link

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

@Benjamin1333
Copy link

Same here. Really annoying

@mnr-moustafa
Copy link

Any updates here please?

@oshamahue
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants