Question
To understand the properties of one-way hash functions, we would like to do the following exercise for MD5 and SHA256: Create a text file of
To understand the properties of one-way hash functions, we would like to do the following exercise for MD5 and SHA256: Create a text file of any length. a. Generate the hash value H1 for this file using a specific hash algorithm. b. Flip one bit of the input file. You can achieve this modification using ghex or Bless. c. Generate the hash value H2 for the modified file. d. Please observe whether H1 and H2 are similar or not. Please describe your observations in the lab report. e. Write a program to check how many bits are different in H1 and H2.
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