This is a simple Java-based console application that implements a secure login system. It detects brute-force login attempts and locks the user account after three failed attempts. All login activities are logged with timestamps.
- User authentication using username and password
- Brute-force detection and automatic account lock after 3 failed attempts
- Login attempt logging with timestamp (
login_attempts.log) - Clean and modular code (OOP-based)
- Navigate to the project directory:
cd src - Compile the files:
javac *.java - Run the application:
java Main
If you have the JAR file (e.g. LoginSystem.jar):
java -jar LoginSystem.jarAll login attempts are recorded in login_attempts.log with time, username, and result (SUCCESS/FAIL).
| Username | Password |
|---|---|
| alice | 1234 |
| bob | pass |
Pragati
Java & DSA Based Project# LoginSystem