A simple terminal-based Security System written in C++ that allows users to:
- Register (only if age ≥ 18)
- Login with credentials
- Change password
- Exit
User credentials (username, password, age) are stored in a local file (File.txt
).
- Register with validation for minimum age (18+)
- Login with username, password, and age verification
- Secure password change functionality
- User data stored in file for persistence
- Password is masked when displayed (not shown in plain text)
- Make sure you have a C++ compiler (e.g.,
g++
) installed. - Compile and run the program:
g++ security_system.cpp -o security_system
./security_system
g++ security_system.cpp -o security_system.exe
security_system.exe