Hashing Passwords in Node and Express using bcrypt

Поділитися
Вставка
  • Опубліковано 8 лип 2024
  • Learn how to correctly hash and store your passwords for any web app using node.js and express. The only things you need to take away from the video are:
    1. Don't store passwords in plain text
    2. Hash your passwords using bcrypt
    Chapters:
    0:00​ Intro
    0:30 Hashing with bcrypt
    2:30 Other Hashing Algorithms
    4:30 Salt
    6:30 bcrypt cost factor
    9:03 Comparing Passwords
    10:28 Express App
    16:43 Summary
    🔗Moar Links
    My Website: www.sammeechward.com
    Instagram: / meech_ward
    Github: github.com/orgs/Sam-Meech-Ward
  • Наука та технологія

КОМЕНТАРІ • 55

  • @kemal_ozturk
    @kemal_ozturk 2 роки тому +10

    I love the little co-pilot interactions lol

  • @samsorge27
    @samsorge27 Рік тому +4

    I'm amazed how fast you spin up these little express applications to illustrate your point

  • @colbr6733
    @colbr6733 Рік тому +6

    Thought I already had a good understanding of this theme, however this review uncovers aspects I wasn't aware of. Thanks Sam.

  • @matthewc.9437
    @matthewc.9437 Рік тому +3

    You're a wonderful teacher. Appreciate the video.

  • @ferreiradelima96
    @ferreiradelima96 4 місяці тому +1

    Your're an excellent teacher.

  • @vernevens1598
    @vernevens1598 Місяць тому

    Very good video. Simple, to the point without a bunch of clutter, very easy to understand. Thank you.

  • @phillymontana
    @phillymontana Рік тому +1

    Really good introduction to bcrypt.

  • @BrandonDix-gw7ez
    @BrandonDix-gw7ez Рік тому +1

    Great Video, great teaching style

  • @vinaykumarkharwar177
    @vinaykumarkharwar177 Рік тому

    Thank you, that was such a great short introduction, albeit knowledgeful.

  • @mohammadaitisamyaseen2564
    @mohammadaitisamyaseen2564 8 місяців тому

    Much appreciated! Your video helped me alot. Great teaching method 👍

  • @em-kv3lw
    @em-kv3lw 4 місяці тому

    Thank you so much! Super helpful beginner friendly guide.

  • @HarisKhan-bh6uj
    @HarisKhan-bh6uj 8 місяців тому

    Thanks for the helpful video !! helped a lot !!

  • @MostafaDeutsch-ex2kb
    @MostafaDeutsch-ex2kb 6 місяців тому

    Very clear and smart

  • @alexdiffodoumtsop3405
    @alexdiffodoumtsop3405 Рік тому

    awesome video. thanks dude!

  • @youssefahmed8861
    @youssefahmed8861 Рік тому

    definetly liked this video 👏

  • @sofiatachmatzidou175
    @sofiatachmatzidou175 Рік тому +1

    This was awesome! Thank you!

  • @pro.grammer
    @pro.grammer Рік тому

    awesome video thanks!

  • @cheesepotato5753
    @cheesepotato5753 6 місяців тому

    this video made me understand res and req holy cow

  • @vladimirpuma6079
    @vladimirpuma6079 3 місяці тому

    Great video, thanks!!!

  • @technocoh
    @technocoh 3 місяці тому

    Great video, thanks! ;)

  • @bigbadcatbigbcy2933
    @bigbadcatbigbcy2933 8 місяців тому

    thanks everything was so celar to understand

  • @frfrongong9712
    @frfrongong9712 Рік тому +2

    I cant use await on my bcrypt.compare function, itd already inside an async function, can i get some help

  • @rohbarsch1201
    @rohbarsch1201 6 місяців тому

    I'm not using JS but this was an excellent tutorial. I'm most curious about the postman add on for vs code.

  • @vaibhavgupta973
    @vaibhavgupta973 Рік тому

    thank you !!

  • @philipparker113
    @philipparker113 10 місяців тому

    Awesome video

  • @prabhakarmishra2182
    @prabhakarmishra2182 11 місяців тому

    u explained it very well, do you have courses ?

  • @WahYudi-ue2uh
    @WahYudi-ue2uh 7 місяців тому

    how can you push on const user?. dont u have to use let user

  • @makisetakashi
    @makisetakashi 4 місяці тому

    which one is better between bcrypt and argon2 ?

  • @BrandonAB
    @BrandonAB 2 місяці тому

    I'm curious, without knowing exactly how the hashing algo does its thing, couldn't I just make up my own algo where a = 5236, b = 5267, c = 4523, so on and so forth, assigning each allowable character a value, then taking those values and do several other things with the result to make the process consistently repeatable so I can compare the result of my "hashing algo" with the original password, instead of using a publicly available tool like bcrypt? What would be the downside to this?

  • @SumitSingh-rw2vl
    @SumitSingh-rw2vl Місяць тому

    which tool using in vs code to pull request ?

  • @samontefrankamirsong.5474
    @samontefrankamirsong.5474 4 місяці тому

    I am your biggest fan Christ Martin from Coldplay! omg

  • @skyzane2735
    @skyzane2735 3 місяці тому

    Is this bcrypt still secure these days and standard in storing passwords?
    I saw you showed some docs saying use bcrypt as second only against argon2id something

  • @xoldyckk176
    @xoldyckk176 2 роки тому

    Argon2 is the new recommended hashing algorithm. It's more secure than bcrypt.

  • @yourfavouriteman
    @yourfavouriteman Рік тому +1

    To use an await function with no async function es bien !!

  • @ikechukwualita521
    @ikechukwualita521 9 місяців тому

    good job. Please how can i do this in php mysql

  • @samontefrankamirsong.5474
    @samontefrankamirsong.5474 4 місяці тому

    Outrageous - VLDL Benjamin

  • @solehudin6861
    @solehudin6861 15 днів тому

    What software / app is that? Visual studio code?

  • @mateusmiguel_
    @mateusmiguel_ 10 місяців тому +2

    is it safe to send the password in the request as plain text? couldn't an unsecured wifi network easily intercept the call and steal the password?

  • @obidkenjayev7062
    @obidkenjayev7062 5 місяців тому

    Good

  • @asaphhere
    @asaphhere Рік тому

    Btw is it bad to encrypt username as well? is it bad practice/even more complex?

    • @SamMeechWard
      @SamMeechWard  Рік тому +1

      usernames aren't generally sensitive information, we display them publicly, so encryption isn't necessary and just takes more time. If you encrypt a username, you always need to decrypt it to use it. If you store it in a database, it makes looking up some data by a username way more difficult.
      Also, keep in mind, that bcrypt is hashing, not encrypting. If you hash a username, you'll never be able to get that username back, so never do that.

    • @asaphhere
      @asaphhere Рік тому

      @@SamMeechWard thank you and that makes sense. And also thank you for uploading content regarding AWS S3 and other services, you don’t understand how helpful they are. Is there any other way of contacting you?

    • @SamMeechWard
      @SamMeechWard  Рік тому

      @@asaphhere Thank you. You can join my discord server if you like discord.gg/XQJ5bmjKHk

  • @yourfavouriteman
    @yourfavouriteman Рік тому

    It should b > npm i bcryptjs

  • @Anteater23
    @Anteater23 3 місяці тому

    Should you not hash the password before you post it?

  • @unhandledexception1948
    @unhandledexception1948 8 місяців тому

    @ 1:26 you are awaiting in a top level script / module without using an async IIFE... I thought that is not possible ?

    • @SamMeechWard
      @SamMeechWard  8 місяців тому +1

      It’s fine if you’re using es modules

    • @unhandledexception1948
      @unhandledexception1948 8 місяців тому

      Thanks ! Yes, I noticed this didn't work when using require() @@SamMeechWard

  • @mastuyt6931
    @mastuyt6931 Рік тому

    what the hell is going on ?? how can you use await without async???/

  • @SamuelAmoh-bu7vg
    @SamuelAmoh-bu7vg 26 днів тому

    not working for me

  • @aprilm2941
    @aprilm2941 2 роки тому +1

    I only like hash if it’s got potato in it. 🥔

    • @SamMeechWard
      @SamMeechWard  2 роки тому +7

      Just don’t forget to add salt ;)

  • @zzn-wc7nx
    @zzn-wc7nx 10 місяців тому

    He's handsome i can't focus sos 🥲