Package com.project.passwordChecker
Class PassStrengthChecker
java.lang.Object
com.project.passwordChecker.PassStrengthChecker
Main class for the Password Strength Checker application.
This program checks the strength of a given password by evaluating its length, uppercase and lowercase letters, numbers, and special characters. It provides feedback on the password's strength.
- Version:
- 1.0.0
- Author:
- Anurag Zete
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static String
checkPasswordStrength
(String password) Checks the strength of the given password based on the following criteria: Length (at least 8 characters) Contains at least one uppercase letter Contains at least one lowercase letter Contains at least one number Contains at least one special characterstatic void
The entry point of the Password Strength Checker application.
-
Constructor Details
-
PassStrengthChecker
public PassStrengthChecker()
-
-
Method Details
-
main
The entry point of the Password Strength Checker application.Displays a welcome banner, prompts the user for passwords, and evaluates their strength based on multiple conditions. The program runs in a loop until the user chooses to exit.
- Parameters:
args
- Command-line arguments (not used).
-
checkPasswordStrength
Checks the strength of the given password based on the following criteria:- Length (at least 8 characters)
- Contains at least one uppercase letter
- Contains at least one lowercase letter
- Contains at least one number
- Contains at least one special character
- Parameters:
password
- The password to evaluate.- Returns:
- A string describing the password's strength and suggestions for improvement.
-