Platform value storage
Android
On Android, values are stored in Jetpack DataStore
, encrypted with Android's Keystore system.
The Keystore supports various encryption algorithms, such as AES and RSA. Securing sensitive data requires careful consideration of different storage options. This guide will help you choose the most appropriate storage type.
Security Levels
We offer three security levels for data storage:
1. High Security (with Biometric Authentication)
- AES_GCM: Symmetric encryption with biometric protection
- RSA: Asymmetric encryption with biometric protection
- Best for: Passwords, personal data, sensitive keys
2. Medium Security (without Authentication)
- AES_GCM_NO_AUTH: Symmetric encryption without biometric requirements
- Best for: Cached data, non-sensitive encrypted data
3. Legacy/Deprecated
- AES_CBC
- ⚠️ Not recommended for new implementations