encryptionKey property
The encryption key (hex-encoded, 64 characters for 256-bit key).
IMPORTANT: This key should be:
- Derived from user password using PBKDF2/Argon2
- Stored securely using flutter_secure_storage
- Never hardcoded or stored in plaintext
Example key generation at app level:
// Generate random 256-bit key
final random = Random.secure();
final keyBytes = List<int>.generate(32, (_) => random.nextInt(256));
final keyHex = hex.encode(keyBytes);
Implementation
final String encryptionKey;