encryptionKey property

String encryptionKey
final

The encryption key (hex-encoded, 64 characters for 256-bit key).

IMPORTANT: This key should be:

  1. Derived from user password using PBKDF2/Argon2
  2. Stored securely using flutter_secure_storage
  3. 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;