Storage
Storage system documentation for Flow Wallet Kit Android SDK
Storage
The Flow Wallet Kit for Android implements a secure and efficient storage system for managing wallet data and user preferences.
Overview
The storage system is built on top of Android's security best practices, utilizing:
- Android Keystore System for cryptographic key storage
- EncryptedSharedPreferences for secure data persistence
- Room database for structured data storage
- File-based encryption for larger data sets
Usage
Basic Storage Operations
Storing Wallet Data
Security Features
Encryption
All sensitive data is encrypted using:
- AES-256 for data encryption
- RSA for key encryption
- SHA-256 for hashing
Key Protection
Private keys are:
- Encrypted before storage
- Never stored in plaintext
- Protected by Android Keystore
- Accessible only by your app
Data Types
The storage system supports various data types:
- Strings
- Numbers
- Boolean values
- Binary data
- JSON objects
- Custom serializable objects
Best Practices
-
Always encrypt sensitive data
-
Use appropriate storage methods
-
Handle errors appropriately
Migration
The storage system supports data migration between versions:
Backup & Recovery
The storage system includes backup and recovery features:
Thread Safety
The storage implementation is thread-safe and can be accessed from multiple threads: