Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Rule +40 Part 2: Password Strength Calculator (15 points) Have you ever had the experience while creating an account on a website, and as you're

image text in transcribed

Rule +40 Part 2: Password Strength Calculator (15 points) Have you ever had the experience while creating an account on a website, and as you're typing in your password, a little meter pops up to tell you how "strong" your password is? Let's create our own version of that meter. Complete the function password_strength, that takes one argument, password, which is a string of characters consisting of lowercase letters, uppercase letters, digits and non-alphanumerical symbols. The function allocates points to password based on the location of certain characters in the string. The total at the end is a score of sorts that measure how strong the password is. Points to Add the first character is a digit a digit that is anywhere else +25 for each such digit the first character is an uppercase letter +25 the last character is a lowercase letter a lowercase letter that is anywhere else +5 for each such lowercase letter Examples: Function Call password_strength('BACG) password_strength('W63UHTUN) password_strength("Msq8n2wGpMn) password_strength('HTL9YQ') password_strength('gw74X512") password_strength('9EBOT (123) password_strength('y'n(XXVp2') +15 Return Value 10 85 135 48 11e 79 50 password_strength('Ifxus) 30

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

Step: 3

blur-text-image

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

Understanding Databases Concepts And Practice

Authors: Suzanne W Dietrich

1st Edition

1119827949, 9781119827948

More Books

Students also viewed these Databases questions

Question

What is data conversion?

Answered: 1 week ago

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago