Java project for generating and checking password strength
This project is a simple Java application that helps users generate strong and secure passwords. In today’s digital world, many people use weak passwords, which can make their accounts vulnerable to hacking. This program helps solve that problem by generating random passwords that include letters, numbers, and special characters.
The project also allows users to check the strength of a password and view useful information about it.
The main objectives of this project are:
- To generate strong and random passwords.
- To check whether a password is strong, medium, or weak.
- To display useful information about a password such as number of letters, digits, and symbols.
- To practice basic Java programming concepts like loops, conditions, methods, and user input.
This program provides the following features:
-
Password Generation The user can enter the desired password length, and the program generates a random password using uppercase letters, lowercase letters, numbers, and special characters.
-
Password Strength Checking The user can enter any password to check whether it is strong, medium, or weak based on its composition.
-
Password Information Display The program displays useful details about the password, including:
- Total password length
- Number of letters
- Number of digits
- Number of symbols
-
Menu-Based Interface The program runs in a loop and displays a menu so the user can choose different options until they decide to exit.
- Programming Language: Java
- IDE/Editor: Visual Studio Code
- Version Control: Git and GitHub
-
Download or clone this repository.
-
Open the project folder in Visual Studio Code or any Java IDE.
-
Compile the program using:
javac PasswordGenerator.java
-
Run the program using:
java PasswordGenerator
-
Follow the menu options displayed in the terminal.
This project demonstrates how Java can be used to build a simple but useful application for password security. It also helped in understanding Java programming concepts such as methods, loops, condition statements, and user input handling. The project can be further improved by adding a graphical user interface or saving generated passwords securely.