https://github.com/pragati-i/loginsystem
Java login system with brute-force protection and attempt logging.
https://github.com/pragati-i/loginsystem
brute-force-detection java login-system security
Last synced: about 1 year ago
JSON representation
Java login system with brute-force protection and attempt logging.
- Host: GitHub
- URL: https://github.com/pragati-i/loginsystem
- Owner: Pragati-i
- Created: 2025-05-03T15:21:52.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-04T12:04:13.000Z (about 1 year ago)
- Last Synced: 2025-05-04T12:34:55.497Z (about 1 year ago)
- Topics: brute-force-detection, java, login-system, security
- Language: Java
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🔐 Login System with Brute-Force Detection
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.
---
## ✅ Features
- 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)
---
## 🚀 How to Run
### 🖥️ Using Java Compiler (Terminal / CMD)
1. Navigate to the project directory:
```bash
cd src
```
2. Compile the files:
```bash
javac *.java
```
3. Run the application:
```bash
java Main
```
---
### 📦 Using JAR File
If you have the JAR file (e.g. `LoginSystem.jar`):
```bash
java -jar LoginSystem.jar
```
---
## 📝 Log File
All login attempts are recorded in `login_attempts.log` with time, username, and result (SUCCESS/FAIL).
---
## 💡 Example Users
| Username | Password |
|----------|----------|
| alice | 1234 |
| bob | pass |
---
## 👩💻 Created By
**Pragati**
Java & DSA Based Project# LoginSystem