How do I implement salt into my login for passwords?

前端 未结 8 1398
醉酒成梦
醉酒成梦 2020-12-12 16:16

I want to implement a salt into my login system but am a bit confused on how this is supposed to work. I can\'t understand the logic behind it. I understand md5 is a one-way

8条回答
  •  抹茶落季
    2020-12-12 16:36

    You don't get the password out for comparison. You encrypt the password when they attempt a login and compare the stored value with the newly encrypted value.

提交回复
热议问题