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

  What processes and properties would you include

Visual Basic.NET allows you to create your own classes. Provide an instance of a useful class you could create. What methods and properties would you include? Show an example of a method declaration for your class.

  Add a process addtext to the question class

Add a method addText to the Question class, and give a different implementation of ChoiceQuestion that calls addText rather than storing an array list of choices.

  What mean to take a systems view of a project

What does it mean to take a systems view of a project? How does taking the systems view of a project apply to project management.

  What type of procedures might a company put into place

What are some common steps and what type of procedures might a company put into place.

  Explain two methods for categorical data conversion

explain two methods for categorical data conversion. List the advantages and disadvantages of this approach.

  The tabular output has to include these cross-totals

Thus, each salesperson passes in between 0 and 5 sales slips per day. suppose that the information from all the slips for last month is available.

  Digital technique for transmission of voice-telephone system

State four benefits and one de-merits of utilizing the digital (rather than analog) techniques for transmission of the voice-telephone signals.

  Prompts the user to enter the number of students

Write down a Java program that prompts the user to enter the number of students and each student's name and score, and finally displays the student with the highest score and the student with second-highest score.

  Why computer''s activities is handling failure

why computer's activities is handling failure.

  In-house development of software

Discuss the innovative and creative ways in order to use patient ID bracelet consisting of a bar-code representation of patient's ID.

  What are outputs and inputs to schedule control

What are the SMART criteria? What are the 5key points of using project milestones.

  Why to prepare a powerpoint presentaion

Are there any Websites that details the attributes of an effective PowerPoint presentation. Also what in your opinion would be one or two "best practices".

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