Difference between Hashing a Password and Encrypting it

前端 未结 9 808
野的像风
野的像风 2020-11-22 02:46

The current top-voted to this question states:

Another one that\'s not so much a security issue, although it is security-related, is complete and abje

9条回答
  •  情话喂你
    2020-11-22 03:01

    Ideally you should do both.

    First Hash the pass password for the one way security. Use a salt for extra security.

    Then encrypt the hash to defend against dictionary attacks if your database of password hashes is compromised.

提交回复
热议问题