Skip to main content
replaced http://crypto.stackexchange.com/ with https://crypto.stackexchange.com/
Source Link

Do databases store the hash of the password or not?

Yes, they do.

And if they do so, can the thing I wrote above happen?

Perhaps it could, but it's unlikely. It is usually easier to find the original password rather than a collision. With a strong hash function, it is difficult to find another string with the same hash as the string 'hello', but easy to quickly verify whether the hash really matches 'hello'.

Even strong key-derivation functionskey-derivation functions have to use few enough rounds to handle a number of users (on the server), so they would usually allow an attacker to make tens to thousands of guesses per second. When a salt is used, each user's hash has to be attacked individually. Nevertheless, if the password is e.g. on a list of top 1000 passwords (which can be over 90% of them), like 'hello' is, it will fall in a matter of seconds.

Do databases store the hash of the password or not?

Yes, they do.

And if they do so, can the thing I wrote above happen?

Perhaps it could, but it's unlikely. It is usually easier to find the original password rather than a collision. With a strong hash function, it is difficult to find another string with the same hash as the string 'hello', but easy to quickly verify whether the hash really matches 'hello'.

Even strong key-derivation functions have to use few enough rounds to handle a number of users (on the server), so they would usually allow an attacker to make tens to thousands of guesses per second. When a salt is used, each user's hash has to be attacked individually. Nevertheless, if the password is e.g. on a list of top 1000 passwords (which can be over 90% of them), like 'hello' is, it will fall in a matter of seconds.

Do databases store the hash of the password or not?

Yes, they do.

And if they do so, can the thing I wrote above happen?

Perhaps it could, but it's unlikely. It is usually easier to find the original password rather than a collision. With a strong hash function, it is difficult to find another string with the same hash as the string 'hello', but easy to quickly verify whether the hash really matches 'hello'.

Even strong key-derivation functions have to use few enough rounds to handle a number of users (on the server), so they would usually allow an attacker to make tens to thousands of guesses per second. When a salt is used, each user's hash has to be attacked individually. Nevertheless, if the password is e.g. on a list of top 1000 passwords (which can be over 90% of them), like 'hello' is, it will fall in a matter of seconds.

added 62 characters in body
Source Link
otus
  • 32.4k
  • 5
  • 73
  • 167

Do databases store the hash of the password or not?

Yes, they do.

And if they do so, can the thing I wrote above happen?

Yes, and perhapsPerhaps it could, but not likelyit's unlikely. However, itIt is usually easier to find the original password rather than a collision. With a strong hash function, it is unlikely that youdifficult to find another string with the same hash as the string 'hello', but you caneasy to quickly verify whether the hash really matches 'hello'.

Even strong key-derivation functions that run on the serverkey-derivation functions have to use few enough rounds to handle a number of users (on the server), so they would usually allow an attacker to make several (or hundreds or eventens to thousands) of guesses per second. When a salt is used, each user's hash has to be attacked individually. Nevertheless, if the password is e.g. on a list of top 1000 passwords (which can be over 90% of them), like 'hello' is, it will fall in a matter of seconds.

Do databases store the hash of the password or not? And if they do so, can the thing I wrote above happen?

Yes, and perhaps, but not likely. However, it is usually easier to find the original password rather than a collision. With a strong hash function, it is unlikely that you find another string with the same hash as the string 'hello', but you can quickly verify whether the hash really matches 'hello'.

Even strong key-derivation functions that run on the server have to use few enough rounds to handle a number of users, so they would usually allow an attacker to make several (or hundreds or even thousands) of guesses per second. When a salt is used, each user's hash has to be attacked individually. Nevertheless, if the password is e.g. on a list of top 1000 passwords (which can be over 90% of them), like 'hello', it will fall in a matter of seconds.

Do databases store the hash of the password or not?

Yes, they do.

And if they do so, can the thing I wrote above happen?

Perhaps it could, but it's unlikely. It is usually easier to find the original password rather than a collision. With a strong hash function, it is difficult to find another string with the same hash as the string 'hello', but easy to quickly verify whether the hash really matches 'hello'.

Even strong key-derivation functions have to use few enough rounds to handle a number of users (on the server), so they would usually allow an attacker to make tens to thousands of guesses per second. When a salt is used, each user's hash has to be attacked individually. Nevertheless, if the password is e.g. on a list of top 1000 passwords (which can be over 90% of them), like 'hello' is, it will fall in a matter of seconds.

Source Link
otus
  • 32.4k
  • 5
  • 73
  • 167

Do databases store the hash of the password or not? And if they do so, can the thing I wrote above happen?

Yes, and perhaps, but not likely. However, it is usually easier to find the original password rather than a collision. With a strong hash function, it is unlikely that you find another string with the same hash as the string 'hello', but you can quickly verify whether the hash really matches 'hello'.

Even strong key-derivation functions that run on the server have to use few enough rounds to handle a number of users, so they would usually allow an attacker to make several (or hundreds or even thousands) of guesses per second. When a salt is used, each user's hash has to be attacked individually. Nevertheless, if the password is e.g. on a list of top 1000 passwords (which can be over 90% of them), like 'hello', it will fall in a matter of seconds.