All android 7+ devices are equipped with Trusted Execution Environment (TEE) as a mandatory requirement for Google apps licensing. It's a [hardware backed keystore](https://source.android.com/security/keystore) which provides isolated storage and data processing for cryptographic blobs. In Qualcomm Snapdragon and Samsung Exynos SoCs, TEE is based on [ARM Trustzone](https://research.checkpoint.com/2019/the-road-to-qualcomm-trustzone-apps-fuzzing/). Some devices like in Pixel and iPhone have their own discrete TEE (Google's Titan M and Apple's T2 chip) which is called **strongbox** just like iPhone's T2 chip). Discrete TEEs are more isolated than ARM Trustzone and independent of the SoC used. You can use android keystore provider APIs to - [generate private keys](https://developer.android.com/training/articles/keystore#GeneratingANewPrivateKey) - [generate secret keys](https://developer.android.com/training/articles/keystore#GeneratingANewSecretKey) - [sign and verify data](https://developer.android.com/training/articles/keystore#SigningAndVerifyingData) - [import encrypted keys](https://developer.android.com/training/articles/keystore#ImportingEncryptedKeys) - [authenticate user for key use](https://developer.android.com/training/articles/keystore#UserAuthentication) - [Verify hardware-backed key pairs with Key Attestation](https://developer.android.com/training/articles/security-key-attestation) Every key stored within the keystore can have the following parameters set: alias - used to identify the key. key size (API 23). purpose – encrypt/decrypt (API 23). encryption mode, algorithm and padding (API 23). should the key be authenticated with the keystore before usage? (API 23). the time duration for which the key can be used after a successful authentication (API 23). should a key be invalidated on new fingerprint enrolment? (API 24) should a keystore require the screen to be unlocked before performing cryptographic operations? (API 28) should a key be protected by a StrongBox hardware security module? (API 28) You can also use it to encrypt authentication tokens for login, store passwords and encrypt the key which encrypts your app's large sensitive data. ---------- [Android keystore system](https://developer.android.com/training/articles/keystore) [How Secure is your Android Keystore Authentication?](https://labs.f-secure.com/blog/how-secure-is-your-android-keystore-authentication/) (Outdated, published before android 10 release)