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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started