8. Hashing Password using bcrypt | Node JS API Authentication

preview_player
Показать описание
#JWT #jsonwebtoken #api #authentication #dotenv #bcrypt
In this video we will see how to #hash a user #password before saving it inside #mongoDB #database, since we are using #mongoose so we are going to use a mongoose #middleware to hash the password just before saving using #presave middleware.

(One FREE project forever 😘)

Support the channel:

References:

———————————————
More useful videos
———————————————

———————————————
Other useful Playlists
———————————————

———————————————
What I use
———————————————

#yoursTRULY #tutorial #howto #android
Рекомендации по теме
Комментарии
Автор

One of d most simplest explanation on crypt so far.. did u also make a video to compare???

onigbindedavid
Автор

OMG! Super clear - good quality code! no starting in English with an English title and then moving to some Indian language with doors banging in the background. You got a new subscriber

hago
Автор

Hi, I have not seen devloper like you, who is fluent in working in android Devlopment and web development both. Keep going.

shivamkumarjha
Автор

Excellent video! I loved how you explained why you were doing everything as you were doing it

TomatoCultivator
Автор

Finally worked, awesome explanation!! thank you :)

nicogarcia
Автор

can i ask what font are you using in this video?

hoangsondao
Автор

Hey can you explain this, i have a question as we know, we can make many models and dao to store different data in a room database but when we want to save different list of data at runtime so how can we save it to same Room Database which having single dao interface and model class.
let's take an example : if we have a notes application and in that we have categories like private, personal etc which we are creating at runtime. So how can i save all the categories of data in a one room database. Is is possible

kn_shorts_
Автор

what is the font family of your vs code?

sohrabhossain
Автор

How bcrypt for update? Not working with pre('save')

naorii
Автор

is "next()" necessary in "User.model.js" line 23? Currently we don't have any middleware to pass it to so I didn't include it in my code and it works perfectly fine. Curious on the answer

alibaba
Автор

@yoursTRULY Hey if I want to include forgot password in it, then how should i update that password, by declaring pre function in model or by just doing it in controllers?

khushboogoyalkhush
Автор

Hey bro, how do you decrypt the password after you take it back to check if your user has provided the proper credentials?

aadityakiran_s
Автор

how to validate it again when user signs in?

ADITYAKUMARking
Автор

"bcrypt is not defined" i am getting this error.

rayventhakur