Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is in java. No packages can be imported! Thanks you // Q2 public static String checkPasswordStrength (String input) As the number of accounts for

This is in java. No packages can be imported! Thanks you

image text in transcribed

// Q2 public static String checkPasswordStrength (String input) As the number of accounts for each user has increased, people have been creating passwords hastily, resulting in weak and easily-hacked passwords (Fun fact: one of the statistically worst passwords is 123456789. Change it if one of your passwords includes this combination). To ensure that we, as users, will utilize passwords with reliable security and strength, we'll be creating a method that checks a potential password combination and returns the strength of the password. Below are the criteria for the input password input: At least 1 uppercase & 1 lowercase letter At least 1 number The length of the entire password >= 8 Must contain special characters (anything that's not a number or an alphabet) > Based on the above criteria evaluated on the input, you'll be returning: Not Acceptable -> input fulfills none of the criteria, suggesting that this password is extremely insecure, therefore unacceptable Weak -> input fulfills 1-2 criteria, suggesting that this password is acceptable, but still considered weak and unreliable. Strong" -> input fulfills 3+ criteria. This password is comparatively strong and difficult to be hacked, compared to Not Acceptable passwords

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions