Question

In: Computer Science

What is a hash and what is its relevance to passwords?

What is a hash and what is its relevance to passwords?


Solutions

Expert Solution

A hash is designed to act as a "one-way function": A mathematical operation that's easy to perform, but very difficult to reverse. Like other forms of encryption, it turns readable data into a scrambled cipher. But instead of allowing someone to decrypt that data with a specific key, as typical encryption functions do, hashes aren't designed to be decrypted. Instead, when you enter your password on a website, it simply performs the same hash again and checks the results against the hash it created of your password when you chose it, verifying the password's validity without having to store the sensitive password itself.

Hashing” passwords is the common approach to storing passwords securely. A “Hash” is a one-way function that generates a representation of the password. So when a user signs up for an account and they choose a password, the password is stored as the generated hash, rather than the actual characters that the user typed in. When you run a password through a hashing function, it will always produce the same output. When the user tries to log in with their email and password, the entered password is hashed again and then compared to what is stored in the database. If the two hashes are the same, the user has entered the correct password.

Hashes are impossible to convert back into plain text, but you don’t need to convert them back in order to break them. Once you know that a certain string converts to a certain hash, you know that any instance of that hash represents that string.

Hashing a password is good because it is quick and it is easy to store. Instead of storing the user’s password as plain text, which is open for anyone to read, it is stored as a hash which is impossible for a human to read.


Related Solutions

what is hash in digital forensic?
what is hash in digital forensic?
What are the advantages of hashing passwords?
What are the advantages of hashing passwords?
What is the “exchange rate pass through”? What is its relevance for hedging?
What is the “exchange rate pass through”? What is its relevance for hedging?
7. What is the “exchange rate pass through”? What is its relevance for hedging?
7. What is the “exchange rate pass through”? What is its relevance for hedging?
Explain what is meant by the time value of money, and discuss its relevance to the...
Explain what is meant by the time value of money, and discuss its relevance to the capital budgeting process. View Instructor posts
Explain what is meant by the time value of money, and discuss its relevance to the...
Explain what is meant by the time value of money, and discuss its relevance to the capital budgeting process. Please type out and use a different answer in your own words that differ from what's already on the Chegg database, please and thank you!
What are the (1) hash algorithm identifier, (2) cost factor, (3) salt, and (4) hash value...
What are the (1) hash algorithm identifier, (2) cost factor, (3) salt, and (4) hash value of the following given hashed password that is generated by bcrypt()? $2y$16$.2Boh8Y80U.RaFr1sFdaKuP5/B2Z3I8OM7vUTUvPzD2UEG3VMcXra
SHOW WORK Draw the hash table that results using the hash function: h(k)=kmod7 to hash the...
SHOW WORK Draw the hash table that results using the hash function: h(k)=kmod7 to hash the keys 41, 16, 40, 47, 10, 55. Assuming collisions are handled by Double hashing. SHOW WORK
3. Draw the hash table that results using the hash function: h(k)=kmod 7 to hash the...
3. Draw the hash table that results using the hash function: h(k)=kmod 7 to hash the keys 50, 700, 76, 85, 92, 73, 101. Assuming collisions are handled by Quadratic probing. Don't write a program. Just please manually solve the problem. Thanks.
What is a probability model? What is the relevance?
What is a probability model? What is the relevance?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT