Question: Exercise 2 : Finding a collision on hash function. a . Define a hash function ( SHA 6 0 v ) outputs the first 6
Exercise : Finding a collision on hash function.
a Define a hash function SHAv outputs the first bits nibbles of SHA For
example, SHA of CYS is:
dcfabcddbcbf
SoSHAv should outputs dc
b Find any collision in SHAv You should find two different messages such that the Linux
command:
echo n msg shasum cut c
produces the same answer when msg is replaced by each message. To enable us to verify
your answer, please make sure the two messages are typable on a regular keyboard!
Hint: You should not write the code for SHA; you should use an existing library. Also,
its a good idea to find shorter collisions first. For example, start off finding a collision for
the first bits nibbles; thats a lot easier. The challenge that bits gives you is that
you probably cant store all the intermediate hashes you generate in memory Read
about Floyd's algorithm Nevertheless, you should be able to write a program which
finds a bit collision in a few hours on a regular desktop or laptop computer
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
