Use an array to assign random numbers to the digits

Assignment Help Computer Engineering
Reference no: EM13323344

Traditional password entry schemes are susceptible to "shoulder surfing" in which an attacker watches an unsuspecting user enter their password or PIN number and uses it later to gain access to the account. One way to combat this problem is with a randomized challenge-response system. In these systems, the user enters different information every time based on a secret in response to a randomly generated challenge. Consider the following scheme in which the password consists of a five-digit PIN number (00000 to 99999). Each digit is assigned a random number that is 1, 2, or 3. The user enters the random numbers that correspond to their PIN instead of their actual PIN numbers. For example, consider an actual PIN number of 12345. To authenticate, the user would be presented with a screen such as

PIN: 0 1 2 3 4 5 6 7 8 9

NUM: 3 2 3 1 1 3 2 2 1 3

The user would enter 23113 instead of 12345. This does not divulge the password even if an attacker intercepts the entry because 23113 could correspond to other PIN numbers, such as 69440 or 70439. The next time the user logs in, a different sequence of random numbers would be generated, such as

PIN: 0 1 2 3 4 5 6 7 8 9

NUM: 1 1 2 3 1 2 2 3 3 3

Your program should simulate the authentication process. Store an actual PIN number in your program. The program should use an array to assign random numbers to the digits from 0 to 9. Output the random digits to the screen, input the response from the user, and output whether or not the user's response correctly matches the PIN number.

 

Reference no: EM13323344

Questions Cloud

How far apart are the trains : An eastbound subway train accelerates from rest at 1.22 m/s2 along a straight track. How far apart are the trains when the eastbound subway train is traveling at the same speed as the westbound train
Determine max shearing stress and coexisting normal stress : A 40 mm diameter solid brass shaft in a marine vessel is subjected to a simultaneous torsion of T=250 N.m and axial thrust of P=25kN. Show the combined state of stress on the surface element of the shaft.
What advantages and disadvantages are to implementation : Do you foresee any technical difficulties in deploying this architecture? What advantages and disadvantages are there to this implementation?
Explain what mass in g of iron is needed to evolve : What mass (in g) of iron is needed to evolve 730.5 kJ of heat under standard conditions as it forms iron(III) oxide
Use an array to assign random numbers to the digits : Output the random digits to the screen, input the response from the user, and output whether or not the user's response correctly matches the PIN number.
Explain the sum of the stoichiometric coefficients : What is the sum of the stoichiometric coefficients the formation reaction for methanol (CH3OH). Enter any fraction as a decimal.
What is the pressure in the head of the flowing water : A combined pitot static tube has a coefficient of 0.98. Thedifferential head reading is 0.874m of water when it is positionedon the centreline of a pipe of constant diameter.
Compute where will the image be formed : a diverging lens has a focal length of 50 a source of light is placed 100 cm in front of lens in front of the lens. where will the image be formed
Find where building should be located relative to centreline : A developer has requested permission to build a large retail store at a location adjacent to the intersection of an undivided four-lane major road and a two-lane minor road. Traffic on the minor road is controlled by a stop sign.

Reviews

Write a Review

Computer Engineering Questions & Answers

  How could usability be determined

Locate two Web sites that you feel exhibit exemplary design features. define why you selected each site. What design features stand out on each site? Are these features unique to the Web sites you selected or are they used by their competitors or s..

  Potential vulnerabilities in purchasing with a debit card

Recognize any potential vulnerabilities in the act of forming a purchase along with a debit card.

  Make a gui based program with a writebutton

make a GUI Based program with a WriteButton used to write data to a sequential data file. Then make another ReadData button to read data from the file created and display it in a JTable on the GUI.

  Which is true of today''s cios

The traditional set of IS responsibilities includes all of the following except.

  Benefit of ethical hacking

Describe what you consider is the main benefit of the ethical hacking be sure to involve what is the role of an ethical hacker.

  Webpage for a take out pizza restaurant

design a webpage for a take out pizza restaurant. use radio buttons to allow customers to select type of pizza, such as vegetarian or meat lover's.

  Identify the cost drivers that affect the development time

Estimate the cost in labor months of developing a complete software system that will be used by mechanical engineers to model thermal effects on engine parts. The program replaces an older version.

  Define the importance of bandwidth

define the importance of bandwidth

  Handling of global ethics issue by organizations

Our textbook describes the ethics as “the principles of right and wrong which individuals utilize in order to make choices in order to guide their behaviors”.One global ethical issue is software piracy. What can the organizations such as Microsoft ..

  What would be the mappings between cache block

take a memory of 64 blocks (labeled 0 through 63) and a cache of 16 blocks (labeled 0 through 15). In the questions below, list only correct results.

  Open-addressing hashing method using quadratic probing

Write down the next four (4) locations we will attempt (suppose they also have collisions) if we are using Quadratic Probing?

  Determining the output

Specify the output if input is diamond diamond? State the output if the input is diamond gold?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd