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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages