you are viewing a single comment's thread
view the rest of the comments
[–] -1 points 3 years ago (4 children)

You could take the old password, change one or two letters and compare the hash to the hash of the new password?

  • source
  • parent
  • hideshow 4 child comments
  • [–] 7 points 3 years ago (3 children)

    That's the point though.

    You're not supposed to have the old password. If you had the old password you could just compare it to the new password.

    The only way you can do it is to take the new password and make a hash for every possible single-character variation and compare them all to the old hash

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 3 years ago (1 child)

    They shouldn't be storing the old password hashed, either. Expired password hashes should be destroyed like any other potentially-sensitive information that is no longer business critical.

    There is a reason hackers look to get users tables even though the passwords are hashed. Because with enough of them and enough time, they can usually figure out plaintext. Giving them 10 previous hashed passwords for each user is just increasing the hypothetical risk.

  • source
  • parent
  • hideshow 1 child comment