Hashing Passwords in Node and Express using bcrypt

Поделиться
HTML-код
  • Опубликовано: 30 июн 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

  • @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.

  • @samsorge27
    @samsorge27 Год назад +4

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

  • @kemal_ozturk
    @kemal_ozturk Год назад +9

    I love the little co-pilot interactions lol

  • @matthewc.9437
    @matthewc.9437 Год назад +3

    You're a wonderful teacher. Appreciate the video.

  • @vernevens1598
    @vernevens1598 Месяц назад

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

  • @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.

  • @phillymontana
    @phillymontana Год назад +1

    Really good introduction to bcrypt.

  • @BrandonDix-gw7ez
    @BrandonDix-gw7ez Год назад +1

    Great Video, great teaching style

  • @ferreiradelima96
    @ferreiradelima96 4 месяца назад +1

    Your're an excellent teacher.

  • @HarisKhan-bh6uj
    @HarisKhan-bh6uj 8 месяцев назад

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

  • @alexdiffodoumtsop3405
    @alexdiffodoumtsop3405 Год назад

    awesome video. thanks dude!

  • @sofiatachmatzidou175
    @sofiatachmatzidou175 Год назад +1

    This was awesome! Thank you!

  • @vladimirpuma6079
    @vladimirpuma6079 3 месяца назад

    Great video, thanks!!!

  • @youssefahmed8861
    @youssefahmed8861 11 месяцев назад

    definetly liked this video 👏

  • @rohbarsch1201
    @rohbarsch1201 5 месяцев назад

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

  • @pro.grammer
    @pro.grammer Год назад

    awesome video thanks!

  • @MostafaDeutsch-ex2kb
    @MostafaDeutsch-ex2kb 6 месяцев назад

    Very clear and smart

  • @technocoh
    @technocoh 3 месяца назад

    Great video, thanks! ;)

  • @cheesepotato5753
    @cheesepotato5753 5 месяцев назад

    this video made me understand res and req holy cow

  • @bigbadcatbigbcy2933
    @bigbadcatbigbcy2933 7 месяцев назад

    thanks everything was so celar to understand

  • @philipparker113
    @philipparker113 10 месяцев назад

    Awesome video

  • @vaibhavgupta973
    @vaibhavgupta973 Год назад

    thank you !!

  • @prabhakarmishra2182
    @prabhakarmishra2182 11 месяцев назад

    u explained it very well, do you have courses ?

  • @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

  • @samontefrankamirsong.5474
    @samontefrankamirsong.5474 3 месяца назад

    Outrageous - VLDL Benjamin

  • @samontefrankamirsong.5474
    @samontefrankamirsong.5474 3 месяца назад

    I am your biggest fan Christ Martin from Coldplay! omg

  • @frfrongong9712
    @frfrongong9712 Год назад +1

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

  • @obidkenjayev7062
    @obidkenjayev7062 5 месяцев назад

    Good

  • @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?

  • @xoldyckk176
    @xoldyckk176 Год назад

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

  • @makisetakashi
    @makisetakashi 3 месяца назад

    which one is better between bcrypt and argon2 ?

  • @solehudin6861
    @solehudin6861 8 дней назад

    What software / app is that? Visual studio code?

  • @yourfavouriteman
    @yourfavouriteman Год назад +1

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

  • @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?

  • @SumitSingh-rw2vl
    @SumitSingh-rw2vl Месяц назад

    which tool using in vs code to pull request ?

  • @WahYudi-ue2uh
    @WahYudi-ue2uh 7 месяцев назад

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

  • @ikechukwualita521
    @ikechukwualita521 8 месяцев назад

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

  • @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

  • @Anteater23
    @Anteater23 3 месяца назад

    Should you not hash the password before you post it?

  • @yourfavouriteman
    @yourfavouriteman Год назад

    It should b > npm i bcryptjs

  • @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

  • @SamuelAmoh-bu7vg
    @SamuelAmoh-bu7vg 18 дней назад

    not working for me

  • @aprilm2941
    @aprilm2941 Год назад +1

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

    • @SamMeechWard
      @SamMeechWard  Год назад +7

      Just don’t forget to add salt ;)

  • @mastuyt6931
    @mastuyt6931 Год назад

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

  • @zzn-wc7nx
    @zzn-wc7nx 10 месяцев назад

    He's handsome i can't focus sos 🥲