Closed Flo354 closed 6 years ago
This seems like a really edge case scenario. Due to the backup/restore of the application data the app seems to believe that the encrypted data is still valid however the Android KeyStore does not contain that key, leading to this exception to be thrown. This sounds like valid behavior to me. Similar to what would happen if you called decrypt()
before ever encrypting anything.
Closing for inactivity. This seems really edge-case. Feel free to re-open this with more info if needed.
Hi,
I am facing an issue when an user restore my app with TitaniumBackup or synchronize it from another phone (example: samsung). Here is the exception:
The error comes from this portion of code in file AesCipherProvider.java.
Do you think it would be ok to detect this behavior and instead throw an InvalidatedKeyException with the removal of the key?
Thanks,