Why should I care about hashing passwords anyway?

后端 未结 12 917
南旧
南旧 2021-01-03 23:04

If a hacker has access to the hashes in my DB, he has access to the rest of the information in the DB anyways. So why would he bother trying to decrypt the passwords? Should

12条回答
  •  执笔经年
    2021-01-03 23:20

    The whole LinkedIn "scandal" was all about leaked hashed passwords.

    As I see it, security isn't about anything other than making data retrieval inconvenient.

    And by inconvenient in the ideal case we mean it'll take you millions of compute years to access (ie single CPU trying to guess at password would take on the scale of millions of years).

    If you store passwords in cleartext, that takes a total of 0 compute years to access. The LinkedIn scandal would have looked much worse. All you have to do is SELECT * FROM USERS (either via injection or an insider).

    People often reuse passwords, so if people learn your password, it means a whole world of data becomes accessible to them (not just their LinkedIn, for example). So it becomes a very personal risk. As a webmaster it's rude not to at least hash passwords: you don't have that much respect for your users to take the basic step of trying to protect their information.

    Even if the hashed password can be cracked, you're at least taking the bare minimum step to protect your users.

提交回复
热议问题