Answered step by step
Verified Expert Solution
Question
1 Approved Answer
By using Paython 3.7: Cryptographic Hash Functions For cryptographic hash functions, we experiment with SHA-256 and SHA-512. Two tasks need to be completed for each
By using Paython 3.7:
Cryptographic Hash Functions
For cryptographic hash functions, we experiment with SHA-256 and SHA-512. Two tasks need to be completed for each of SHA-256 and SHA-512.
1-
Validation: Compute the hash of the string "Hello world!" (12 bytes). Print at least the first 4 bytes and the last 4 bytes in hexadecimal format.
Make sure it matches with 'C0535E4B...1AD9E51A' for SHA-256 and 'F6CDE2A0...85FFB5B6' for SHA-512.
2-
Performance evaluation: Create a message of 256M (256*1024*1024) bytes that are all 0's. Time the process to compute its hash. Calculate the performance in MB/s.
You may need to run the experiment for multiple times in order to calculate the average performance.
Steps of solutions are required.
Thank you very much
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