(5/5)

# write a program to perform password strength analysis by looking up a password in a common password table and/or calculating its strength rating by cakulating the “entropy” of a password.

INSTRUCTIONS TO CANDIDATES

Hello, I need help creating a computer program that will test the strength of a password a user inputs. This program should be written in basic C++ language. All requirements will be attached.

Objective:

We have learned the basic C++ features needed to write structured programs so we can begin to focus more on program design and problem solution. The object of this assignment is to analyze a problem, design a sokition. then write a program to solve it. You are to design and

write a program to perform password strength analysis by looking up a password in a common password table and/or calculating its strength rating by cakulating the “entropy” of a password.

Instructions:

1. Ask the user to enter any password to have its strength checked.

A. If the user enters quit’ exit the program.

B. If the user presses enter with an empty line, ask for the password again.

2. Make sure the entered password is not in a list of common passwords.

A. The common password list is in a file named commonsswo,ds.dat ,. Do not ask the user to enter this (iJuawne..xode ¡t kto

WARN ING: The common password list is built from reaNife password data and contains profana y, so if that would offend you do not visually examine the passwords in the list and do not enter profanity as passwords to test the program

B. The first entry In the common password file is the number of elements in the list.

C. You are to read this number from the file, then dynamically allocate a common password array to exactly the right size.

D. Read the data from the file into the array then close the file.

3. If the password is in the list, display its position in the list and reject it because it is a common password.

4. For passwords that are not rejected in the previous step:

A. CalcuLate the entropy of the password using the formula below.

B. Output the password strength rating based on its entropy using the Strength Rating table below,

5. For this program we will assume that passwords can consist of lower case, upper case, digits and special characters.

Challenge (optional):

If the user presses ‘enter’ with an empty line, randomly generate and display a “Strong” passwGrd (Entropy>. 60 but <128). then calculate and output the actual entropy of the password.

Entropy Formula:

E =  or Iog2(R”)

L = the length of the password”

R = the sum of the character pools represented in the password according to the following table”:

(5/5)

## Related Questions

##### . Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

##### . The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

##### . Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

##### . SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

##### . Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Hire Me