Flutter Android login vault: local DB (id+base64 content), email/Google auth, dashboard search/edit/swipe-delete, dark/system theme, minSdk 29

This commit is contained in:
cania
2026-08-12 11:41:20 +02:00
commit a8791a5b10
138 changed files with 6285 additions and 0 deletions

19
lib/constants.dart Normal file
View File

@@ -0,0 +1,19 @@
/// App-wide constants.
///
/// SECURITY NOTE: The "encryption" below is a lightweight obfuscation
/// (XOR + base64) keyed by a constant. It is NOT cryptographically secure
/// and exists only to satisfy the requirement "content disimpan dengan
/// encrypt base64 (key sebagai constant)". For real protection, swap
/// [encryptionKey] for a key derived from the user's app password + a
/// platform secure store (e.g. flutter_secure_storage + AES).
class AppConstants {
/// Constant encryption key used for the XOR+base64 obfuscation.
static const String encryptionKey = 'OMAH_CITRA_LOGIN_VAULT_2026_XOR_KEY';
/// SQLite database file name.
static const String dbName = 'login_vault.db';
/// Application package-ish identifiers for secure storage keys.
static const String secureKeyEmail = 'vault_email';
static const String secureKeyAppPassword = 'vault_app_password';
}