How do I implement salt into my login for passwords?

前端 未结 8 1405
醉酒成梦
醉酒成梦 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:55

    Forget about using salts (partly for the reason you mention), use bcrypt instead:

    For a good explanation see: http://codahale.com/how-to-safely-store-a-password/

提交回复
热议问题