Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Lab 4.3: Hashing Previously we covered the use of hashing in relation of password security. Hashing is a one way transformation of data into a
Lab 4.3: Hashing Previously we covered the use of hashing in relation of password security. Hashing is a one way transformation of data into a fixed sized output, or hash, representing the integrity of that data. Each hashing algorithm has its own output length. For example, the MD5 hashing algorithm uses an output length of 16 bytes, and SHA-1 uses an output length of 20 bytes. A collision occurs in a hashing algorithm when two completely unique pieces of data are passed as input to the algorithm, which results in the same hash. Increasing the output length of the hashing algorithm allows for more unique hashes and should decrease the chance of a collision if it well written and well tested. Task 1: Introduction to Hashing Tools and File Integrity Validation 1. Various hashing tools are available in your Kali Linux such as md5sum, sha1sum, and sha 256 sum, which can take a file as input and create a hash. Each hashing algorithm has a fixed length output, as shown in table below. Start Kali Linux VM and open Terminal. 2. Type the command shown in below screenshot, it will take you to particular folder. root@kali: \# cd/root/Labs/401.4/hash_lab 3. Type the command shown in below screenshot and press Enter.| root@kali: /Labs/401.4/hash_lab\# Is Apache_Check.py filel.txt stored_hash 4. You can file.txt file in above screenshot. Now type the command shown in below screenshot. root@kali: /Labs/401.4/hash_lab\# cat filel.txt This is a file! As you can see, the file simply contains the sentence, "This is a file!". 5. Now you will run the file through a couple hashing algorithm tool by typing the command shown in below image. \[ \begin{array}{l} \text { root@kali: } \sim \text { Labs/401.4/hash_lab\# md5sum 3e4e987714352d113f009f37f742ed Run the same command, and you should get the same result. Type "md5sum SANS Hash Lab Page p>A hash has been calculated against this page in its current state and is used in the 401.4 hash lab. If a single letter is changed in this document it should be detected! body >
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