SecureStorage
SecureStorage copied to clipboard
AndroidKeyStore reset when it has become unreadable
Before Android 6.0, the Android KeyStore can become inaccessible on some devices when the user has changed the screen lock method. The application cannot read or write in it anymore.
To limit this issue, I have modified the AndroidKeyStore class to clear storage and regenerate the key when the existing one cannot be unwrap.