iamMehedi / Secured-Preference-Store

A cryptography library and a SharedPreferences wrapper for Android that encrypts the content with 256 bit AES encryption. The Encryption key is securely stored in device's KeyStore.
562 stars 97 forks source link

"Key not yet valid" on device #55

Closed andreaslindahl closed 4 years ago

andreaslindahl commented 4 years ago

I'm using SecuredPreferenceStore to store access tokens etc. Works fine in the emulator, but when I run the app on my device I'm not able to save anything.

The error I'm getting when calling putString is android.security.keystore.KeyNotYetValidException: Key not yet valid

Any idea why this is happening?

andreaslindahl commented 4 years ago

Turned out I was running an old version... Updating to 0.7.4 solved the problem.