privacyidea / pi-authenticator

OTP Authenticator App for privacyIDEA Authentication Server
Other
39 stars 21 forks source link

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

Closed frankmer closed 11 months ago

frankmer commented 1 year ago

https://github.com/mogol/flutter_secure_storage/issues/210#issuecomment-789192233

frankmer commented 1 year ago

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

frankmer commented 11 months ago

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.