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

Uncaught Error: PlatformException(Exception encountered, readAll, javax.crypto.BadPaddingException: error:1e000065:Cipher functions:OPENSSL_internal:BAD_DECRYPT #322

Closed
frankmer opened this issue Oct 11, 2023 · 2 comments · Fixed by #337
Milestone

Comments

@frankmer
Copy link
Collaborator

juliansteenbakker/flutter_secure_storage#210 (comment)

@frankmer frankmer added this to the 4.2.1 milestone Oct 11, 2023
@frankmer
Copy link
Collaborator Author

I have not been able to reproduce this bug. But I think the changes in 4.2.1 should handle this bug.

@frankmer
Copy link
Collaborator Author

This error occurs when the key to decrypt the tokens is missing. The only solution is to delete the "corrupted" data and generate a new key.

I have reproduced this bug and tested the fix/workaround.
If this only happens on devices that have previously uninstalled the app, then this fix should be sufficient.

@frankmer frankmer linked a pull request Oct 27, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant