Files
login-vault-android/lib/constants.dart

20 lines
889 B
Dart

/// 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';
}