1

i have a question about the use of hashing:

Why shouldn't I have all the Data I insert in the Database hashed instead of only hashing the password?

Wouldn't it be more secure to hash all values(emails etc.), so an attacker can't get anything, instead of everything except the password?

Why is it common to only hash the password?

Thanks for your help!

2
  • 1
    If you hash all the data, how would you would be able to display anything? Hashing is a one way street only Commented Mar 10, 2022 at 9:11
  • Hashing everything would be secure in the same way as unplugging a server and sealing it in concrete is secure: nobody can get the data, not even you. For passwords, that's actually OK - you don't need to know someone's password, only prove that they do. For everything else, you want encryption not hashing. Commented Mar 10, 2022 at 9:18

1 Answer 1

1

Well because hashing is one-way transaction, so you can't "unhash" the data. What purpose would that data then serve, if you can't read it and user needs to insert it every time again every time you need to process the data in any way?

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.