Class PassStrengthChecker

java.lang.Object
com.project.passwordChecker.PassStrengthChecker

public class PassStrengthChecker extends Object
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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static String
    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
    static void
    main(String[] args)
    The entry point of the Password Strength Checker application.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PassStrengthChecker

      public PassStrengthChecker()
  • Method Details

    • main

      public static void main(String[] args)
      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

      private 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 character
      Parameters:
      password - The password to evaluate.
      Returns:
      A string describing the password's strength and suggestions for improvement.