SALT and HASH password in nodejs w/ crypto

前端 未结 7 2223
野趣味
野趣味 2020-12-07 18:43

I am trying to figure out how to salt and hash a password in nodejs using the crypto module. I am able to create the hashed password doing this:

UserSchema.         


        
7条回答
  •  死守一世寂寞
    2020-12-07 19:22

    I think this tutorial would be most apt for you. Just go through it, its the best I have found yet. Passport Tutorial with Node.js and Crypto

    Hope You Find it helpful.

提交回复
热议问题