subject
Engineering, 13.11.2019 00:31 queenkimm26

(1) input the password
(2) convert letters from the character array to numbers using the double()function and subtract 32.
(3) add up all the numbers in the array using the sum()function.
(4) convert back to a number between 0 and 94 by using the mod() function to divide by 95 and keep the remainder.
(5) convert back to a characters by adding 32 and using the char() function.

write a simple password checker that asks a user to input a password, hashes that password using the algorithm above, and compares to the hashed password 'w'.the code should then print out if the password was "correct" or not. run your code with the correct password "hello", the incorrect password "goodbye", and the password "! ".(make sure there’s five exclamation points).

ansver
Answers: 2

Another question on Engineering

question
Engineering, 03.07.2019 14:10
Explain the difference laminar and turbulent flow. explain it with the shear stress and the velocity profiles.
Answers: 1
question
Engineering, 04.07.2019 18:10
Aflywheel accelerates for 5 seconds at 2 rad/s2 from a speed of 20 rpm. determine the total number of revolutions of the flywheel during the period of its acceleration. a.5.65 b.8.43 c. 723 d.6.86
Answers: 2
question
Engineering, 04.07.2019 18:10
Which of the following ziegler nichols tuning methods the response of the controller to a step input should exhibit an s-shaped curve? a)-open loop mode b)-closed loop mode c)-both modes (open & closed) d)-none of the modes (open & closed)
Answers: 3
question
Engineering, 04.07.2019 18:10
True or false (explain) (110)[111] is a slip system in bcc metals . the {111} family in fcc contains 8 planes. resolved shear stress (rss) in single crystals is just related to the applied stress. critical resolved shear stress (crss) in single crystal metals is direct proportional to the number of defects in the structure
Answers: 2
You know the right answer?
(1) input the password
(2) convert letters from the character array to numbers using the doubl...
Questions
question
Mathematics, 24.09.2019 20:30
question
Mathematics, 24.09.2019 20:30
Questions on the website: 13722363