Question: 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

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!