Android Keystore
ELI5 - The Vibe Check
The Android Keystore is Android's version of the Keychain, a system-managed vault for cryptographic keys that never actually leaves the device's secure hardware. Your app can ask the keystore to encrypt or sign something using a key, but it can never see the key's raw bytes. It's a locked safe that will use its key for you, but won't hand you the key itself.
Real Talk
The Android Keystore is a system that provides hardware-backed, secure storage and management of cryptographic keys, isolating private key material inside secure hardware, a Trusted Execution Environment or Secure Element, where it cannot be extracted even on a rooted device. Apps use the Keystore to generate keys and perform cryptographic operations like signing or encryption without ever accessing the raw key.
When You'll Hear This
"We moved the encryption key into the Android Keystore so it's hardware-backed instead of sitting in SharedPreferences." / "Keystore-generated keys can require biometric authentication before every use, not just once per session."
Related Terms
App Signing
App signing is like putting your digital signature on your app to prove it's really from you and hasn't been tampered with.
Biometric
Biometric authentication uses your body as your password — fingerprint, face, iris scan.
Code Signing
Code signing proves that your code is genuinely from you and nobody tampered with it between your computer and the user's device.
Keychain (iOS)
The Keychain is iOS's vault for anything you really don't want sitting in plain UserDefaults, like passwords, auth tokens, and API keys.