Write a program to simulate the authentication process

Assignment Help Computer Engineering
Reference no: EM13322490

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 doesn't 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

Write a program to simulate the authentication process using this scheme. 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: EM13322490

Questions Cloud

Explain how many electrons were transfered : A current of 0.600 A is passed through a cell for 5min and 30 s. How much charge (in C) was trasferred? How many electrons were transfered
Find dimension parameters that affect the drag coefficient : The flow is incompressible, but friction and inertia influences the flow pattern. Use dimensional analysis. Find the dimension parameters that affect the drag coefficient.
Organizations have several types of cultures : The following relates to managing groups and teams and the online videos you must view. Organizations have several types of cultures that can grow within them over time
What voltage is present in its secondary coil : The primary coil of a transformer has 100 turns and its secondary coil has 400 turns. If theac voltage applied to the primary coil is 120V
Write a program to simulate the authentication process : The user would enter 23113 instead of 12345. This doesn't divulge the password even if an attacker intercepts the entry because 23113 could correspond to other PIN numbers.
Explain surface complex formation with a weak acid : Why does surface complex formation with a weak acid lead to a relative maximum in the extent of surface complex formation (adsorption) at a pH which is usually near the value of -log acidity constant of the weak acid (pKHA)
Estimate the required stack height for wind speeds : A plant is to be constructed that will emit 3.5 metric tons of hydrogen sulfide per day. One of the design criteria is that the concentration 1 km downwind from the stack must not exceed 120 micrograms/m3.
What is the net force of the coil : A long straight wire carrries a current I1 of 15 A. A rectangular coil with two sides parallel to the straight wire has sides 5 cm, what is the net force of the coil
Strategic management : Text: Strategic Management (10th ed. by Charles W. Hill and Gereth Jones)Assignment Chapter (Strategic Leadership: Managing the Strategy-Making Process for Competitive Advantage)

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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