Question: For a particular website, suppose users could only choose positive, whole numbers as passwords, and the site neglected use salting to make the numbers harder

For a particular website, suppose users could only choose positive, whole numbers as passwords, and the site neglected use salting to make the numbers harder to guess.
Here is an example stolen value.
hashed_number ='5cf4e26bd3d87da5e03f80a43a64f1220a1f4ba9e1d6348caea83c06353c3f39'
Carry out a dictionary attach by implementing the following:
Write a function that takes a number as an input, and returns True if that number: (after being converted to a string) hashes to the hashed_number value.
Use this function to find out if value in 0 to 100000 was the password. (Hint: use the range(a, b) function which give ls back a sequence of values from a to (b-1)).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!