Question: create a reverse SHA lookup website. A user will be able to provide a SHA hash value, and you should present the string that created

create a reverse SHA lookup website. A user will be able to provide a SHA hash value, and you should present the string that created the SHA value. You are given 3 input files, sha1_list.txt, sha224_list.txt, and sha256_list.txt. Each file has the given word followed by its hash value, separated by a colon. Each file uses the algorithm specified in the file name. A user should be able to access an html file called sha.html, and enter a sha hash value that will be submitted to a file called sha.php.

The sha.php file should load the information from the 3 text files into a data structure of your choice. (note that the hash values are unique among all 3 files, so you can use the hash value as a key in an associative array). Next, the php script should search for the string that generated the given hash value.

Your php script should generate a dynamic html file that displays the hash value that was searched for, along with either the string that generated the hash value, or a message indicating that the value could not be found in the servers records.

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!