Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

More Books

Students also viewed these Databases questions