Skip to content
Commitwise
Menu

Android Keystore

The Android system that creates and keeps cryptographic keys, often in secure hardware, without ever exposing them to the app.

Definition

Apps ask the Keystore to generate a key and then use it to encrypt, decrypt or sign; the key material can't be exported. Keys can require user authentication, be invalidated when biometrics change, and live in StrongBox hardware where available. Keys are never included in backups.

In practice

A refresh token is encrypted with an AES-GCM Keystore key, and only the ciphertext is stored in DataStore.

Learn it in context

Lessons that use this term.

Related terms

Esc

Type to search the whole site.