Adding Salt to Hashing: A Better Way to Store Passwords

Поділитися
Вставка
  • Опубліковано 20 лип 2024
  • Adding salt to hashes refers to adding random data to the input of a hash function to guarantee a unique output, even when the inputs are the same. In this video Developer Advocate Will Johnson walks you through the benefits of adding Salt to your Hashes and breaks down how the process works.
    Corresponding Blog Post:
    auth0.com/blog/adding-salt-to...
    Chapter Markers:
    00:00 Introduction
    03:08 The Vulnerabilities of Unsalted Hashes
    07:24 Mitigating Password Attacks with Salt
    12:17 Generating a Good Salt
    17:06 Recap and Conclusions
    #hashing #login #developer #authentication
    -----------------------------------------------------------------------------------------------
    Try Auth0 by Okta for free - a0.to/yt-signup
    The Auth0 by Okta blog - a0.to/blog
  • Наука та технологія

КОМЕНТАРІ • 46

  • @cryptoninjapay
    @cryptoninjapay Рік тому +8

    Love how you broke this down into easy to understand terms. Great explanation!

  • @SmallvilleJW
    @SmallvilleJW 11 місяців тому +4

    This was an awesome explanation. Thank you for making things easy to understand! Great job 😎

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

    excellent video! every programmer should be required to watch this video!

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

      Thanks for the feedback! We're happy to hear you found it helpful.

  • @kacy6014
    @kacy6014 11 місяців тому +2

    Best explanation ever. Only thing I would add is that you can append the salt to the hash, then store that in the db. That way you don't need a separate salt column in the db.

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

      Great point!

    • @heyt54
      @heyt54 7 місяців тому

      Either way, if the attacker gets the DB he also has the salt for each user. What the point then to use a salt, unless you keep it _separate_?

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

    ...and this is how educational content should be made

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

    Nice to get some things that I was "sort of sure that's how it is" hammered in. Great video, and great pacing.

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

      Thanks for your feedback! We'll be creating lots of more content like this to cover more identity and security concepts :) Please subscribe to our channel if you'd like to see more.

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

      Thank you!

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

    Man, this video is awesome hahaha your shadowboxing had me laughing out loud. Also holy crap your production quality and visuals are top tier. I can't imagine how long this took. Definitely the most clear and easy to understand video I've seen on hashing, you explained all the concepts in a human way, and not like a robot way lol. Instant sub! Great job

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

      Thanks for watching and subscribing! Glad to hear this video was helpful for you. If there are other subjects you'd like to see covered let us know!

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

    Informative and actually quite entertaining to watch!

  • @user-ru8bb4lv5b
    @user-ru8bb4lv5b 9 місяців тому

    good work, just wanted to watch part of the video and watched until the end

  • @user-cc8kb
    @user-cc8kb 20 днів тому

    Great explanation! Thanks

  • @MuddazC
    @MuddazC 7 місяців тому

    Informative and educational 😊

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

    Thank you for this!

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

    Very nice video, thnx!

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

      Glad that you enjoyed it! Thanks for watching!

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

    Awesome tutorial Will

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

    Nice info! Thanks so much.

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

      Thanks for watching!

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

    Great Video

  • @NikhilChandel-xy2sw
    @NikhilChandel-xy2sw Рік тому

    can Auth0 provide user level resource access control overriding existing roles/permission hierarchies..just because we don't want to create too many roles&permissions

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

    nice work

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

    Thank you.

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

      You are welcome. Thanks for watching!

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

    Spring Security in Java Ecosystem right, its not for js I think

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

    Well done video and cool looking guy🙂

  • @JasDosanjh-mj9co
    @JasDosanjh-mj9co 17 днів тому

    you said the salt is stored in plaintext?

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

    I don't understand how a salted password with random salt can match the saved hash on database.

    • @WillJohnsonio
      @WillJohnsonio 10 місяців тому +1

      Great question!
      The salt should be stored with the hashed password
      When the checking the entered password the salt is grabbed and added to the entered password
      The stored salt is added to the entered password then hashed and compared to the hashed password in the database.
      Does that help?

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

      @@WillJohnsonio oook, kind regards :)

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

    Happy me the 100th up😂

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

      haha! Team work makes the dream work!

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

    🔥👏 Thanks for sharing 💙