Question: java or python language is preferred. I would really appreciate any help Dr. Smart has designed a hash function H() that uses the first 8

java or python language is preferred. I would really appreciate any help

Dr. Smart has designed a hash function H() that uses the first 8 bits of the SHA-256 hash value of a message as the messages hash; i.e., H(m)={The first 8 bits of SHA-256(m)}.

4(a) Generate random messages and compute their hash values using H() until you find two different messages that have the same hash value. Record the number of messages you tried to find the collision, and print the two messages that have the same hash value as well as their hash value

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!