Algorithms
Secure Hash Algorithm (SHA-1) calculates a 160-bit hashed value for the targeted message. Message Digest 5 produces calculates a 128-hash value. MD5 is now considered obsolete because of the “birthday problem”. Notice the increase from 160-bit to 128-bit. Do you think more bits for the hash value makes the algorithm better? Explain your position.
The second question must be on a Word document.
The hash value of a message is a one-way “unique value” that can be extracted from the message using algorithms like MD5 and SHA-x. In this paper, you are going to use a hash calculator (the best way to find one is to google hash calculator). Cut and paste the message below into a hash calculator and compute the MD5 or SHA-1 hashed value. Once you have the hashed value, store it in a text file (notepad). Now, search for an AES encryption tool on the Internet (google: AES encryption tool). Paste the hashed value into the AES tool (note that you will need to create a secret password/key to use the EAS Encryption tool. Once the encryption is completed, explain the resulting value (what is it?).
Sample Answer
While it’s tempting to conclude that more bits in a hash value automatically mean a better algorithm, the answer is not that simple. Here’s why:
Benefits of Higher Bit Hash Values:
- Collision resistance: As the number of bits increases, the probability of generating the same hash value for two different messages (collision) decreases exponentially. This is crucial for data integrity and security, as collisions could potentially allow attackers to forge messages or break digital signatures.
- Increased security: Longer hash values offer more resistance to brute-force attacks, where attackers try every possible combination of inputs to generate the desired hash value. This makes it significantly harder for malicious actors to tamper with data or crack encryption.