Question: In JAVA please In this assignment you are to implement a challenge-response system to protect a user's numeric PIN which they will enter via a
In JAVA please


In this assignment you are to implement a challenge-response system to protect a user's numeric PIN which they will enter via a phone. First you will be supplied a 10-digit numeric string (the challenge) Then, a PIN will be supplied as though typed into a phone ABC DEF GHI KL MNO PORS TUV WXYz So, "AGOT" would signify PIN 2468. To compute a response, substitute each PIN digit with the corresponding challenge digit. For example, assume this challenge (indexes shown for convenience) SEQUENCE 3 INDEX 3 3 3 3 8 If supplied "AGOT via phone (PIN: 2468), you would respond 3121 (the value at index 2, followed by index 4,...). Note that the PIN can be any length (1 or more characters). Also note that if the challenge has repeated digits, the PIN itself is protected because many input PINs could have the same response (and future communications can use a different challenge) You will need to validate the challenge (1o all-digit characters) and the PIN (all digits) and then output the response. For example
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
