Skip to content

Pragati-i/LoginSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔐 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:
    cd src
  2. Compile the files:
    javac *.java
  3. Run the application:
    java Main

📦 Using JAR File

If you have the JAR file (e.g. LoginSystem.jar):

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

About

Java login system with brute-force protection and attempt logging.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages