Passwords & hash functions (Simply Explained)

Поділитися
Вставка
  • Опубліковано 6 січ 2025

КОМЕНТАРІ • 203

  • @tar509
    @tar509 5 років тому +59

    We were just shown this as a part of an information systems security lecture, I figured I'd actually go ahead and give it a like because it's simple and informative

  • @Logical-Sense
    @Logical-Sense 6 років тому +83

    Keep up the good work mate, it was informative.

  • @siddharthgarg1985
    @siddharthgarg1985 6 років тому +110

    Brilliant video.. I love how you explain such complex concepts in a simple manner.. Please keep up the good work

    • @vz7742
      @vz7742 2 роки тому +2

      good mornin sir!

  • @RubeniAlimasi
    @RubeniAlimasi 7 місяців тому +1

    Learned a great deal of things thanks to this video. Thank you.

  • @BobbyBundlez
    @BobbyBundlez 4 роки тому +6

    AMAZING. really appreciated you goign through drop Box's encryption method.
    started coding 8-9 months ago, doing JS now and just started learning how to use the scrypt function as well as salting passwords etc... watching this video made me excited for all the deeper things you can do... maybe one day i shall make it a goal to recreate and code that level of password security like dropbox has! cool vid. thanks again
    anyone wanna share their experience with coding thus far? anyone think im doin ok learning this stuff after 8 months? or am i behind.... lol... sometimes i can't tell tbh
    i still love learning all this stuff regardless lol

  • @md.riyasathossain590
    @md.riyasathossain590 4 роки тому +7

    Thank you, Sir! It did helped me a lot in learning how hash functions actually work! And also Thank You for simplifying the concept!

  • @rahulbiswas9971
    @rahulbiswas9971 4 роки тому +2

    the channel name is perfect
    thanks dude. 💖

  • @maliqattan
    @maliqattan 3 роки тому

    Very nice descreption. Loved it. Thank you very much ❤❤❤

  • @jakub9640
    @jakub9640 3 роки тому +1

    Cyber Security Dev: So which password protection do you want to use?
    Dropbox: y e s

  • @kgreene104
    @kgreene104 5 років тому +5

    Good job. Studying for Security+ exam here and the cryptography has been one thing I've found it hard to get into. It helps to have different explanations of it.

    • @drrider100
      @drrider100 5 років тому

      Agree. Getting ready to take mine. The more I read the more confusing it is for me. But this video just explained it all. I am no. Longer confused.

  • @Lallushe
    @Lallushe 3 роки тому

    Wow, I can't believe how well you explained that! Thank you sir!

  • @ziomanzo
    @ziomanzo 6 років тому +2

    You really explain things simply ✌️

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

    clear and easy to understand this is perfect

  • @tomgi859
    @tomgi859 4 роки тому +2

    Awesome video, very friendly and pleasant to watch! about dropbox- if they're not saving the keys in their db's, where do they save them? physical devices maybe?

  • @0_-
    @0_- 4 роки тому

    This is the first video I saw of you!

  • @LuisFelipe-pq9lr
    @LuisFelipe-pq9lr 10 місяців тому

    This video was incredible, thank u so much

  • @basmamp4834
    @basmamp4834 4 роки тому

    Very informative one.. Liked it.. Well explained!! 💯

  • @declanz5067
    @declanz5067 3 роки тому

    Awesome video - very easy to understand and succinct, it flowed well too - very helpful thank you!

  • @Lukas-kh5gu
    @Lukas-kh5gu 6 років тому +11

    amazing video. learnt a lot, going to share :-)

  • @DayTradingCourse
    @DayTradingCourse 4 роки тому

    Excellent and clear explanation.

  • @MiRaje8086
    @MiRaje8086 4 роки тому +1

    This is awesome man, thanks for explaining.

  • @lucasguaru
    @lucasguaru 4 роки тому

    On 4:38 you said to use different salt but I can't see it happening. If I use different salt, when I have to check the password, I would not know the used hash. If I keep it on the database, I would have the same problem as leaking the password. What I'm missing?

  • @JavaScriptRoom
    @JavaScriptRoom 6 років тому +1

    Great as always! Please keep sharing such a good stuff!

  • @Jeanmims
    @Jeanmims 4 роки тому

    Very clear explanation , well done

  • @tymothylim6550
    @tymothylim6550 3 роки тому

    Thank you very much for this video! Certainly learnt a lot from this and would be learning more about it in detail :)

  • @suyashraut142
    @suyashraut142 4 роки тому

    very informative . best explanation .
    keep it up!!!

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

    Excellent explanation

  • @GloryRay
    @GloryRay 6 років тому

    Great job. I love every single one of your videos!

  • @Alternox
    @Alternox 4 роки тому

    this video is underrated

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

    Wow. perfect video!!

  • @TastySanchez
    @TastySanchez 4 роки тому

    Wow so interesting. Really enjoyed this vid

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

    Great video - thank you

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

    Great video!

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

    Thank you sir Nice explain !!! thumb up

  • @sebastiendebons421
    @sebastiendebons421 6 років тому

    Very interesting video ! Thank you for all this nice work.

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

    Best explanation

  • @rosalyna_24
    @rosalyna_24 3 роки тому +1

    thank you so much for this vid it is very informative

  • @marcusswedin
    @marcusswedin 5 років тому

    Reallly informative! Thanks!

  • @ramanabalachandhran
    @ramanabalachandhran 5 років тому

    Thanks a lot for the succinct adumbration. And by the way.
    04:11 ROFL 😂

  • @swapniljoshi1033
    @swapniljoshi1033 4 роки тому

    Explained very simply thank you

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

    nice!

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

    Is hashing possible for other things like live facial recognition or fingerprints?

  • @MisterSkraetsch
    @MisterSkraetsch 5 років тому +1

    nice video and very well explalined - thanks a lot!!!! :)😁👍✌️

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

    Change the unique hash stored on the database for the same password the user uses, every time the user signs in?

  • @limontec
    @limontec 6 років тому

    Excellent work

  • @abdullahsultan6024
    @abdullahsultan6024 6 років тому

    It's very nice video.. thanks for your efforts and keep it going

  • @lynnelenatorbay1450
    @lynnelenatorbay1450 3 роки тому

    Great video! thanks

  • @JamieWFilms
    @JamieWFilms 4 роки тому

    Amazing video, thank you so much mate!

  • @jason_samosa
    @jason_samosa 3 роки тому

    Excellent content

  • @himanshu4807
    @himanshu4807 3 роки тому

    wow......thank you so much...keep it up plzzz

  • @elasriabdelhamid5659
    @elasriabdelhamid5659 4 роки тому

    Very educative video :)

  • @humayunnaveedkhan1281
    @humayunnaveedkhan1281 4 роки тому

    very well explained

  • @chinonsoiwundu5782
    @chinonsoiwundu5782 3 роки тому +1

    You mentioned something about encryption key being kept separately, how can it be queried to work on the web application? Kindly put more light

  • @shotx333
    @shotx333 5 років тому

    Very well explained, thanks

  • @UltirianHeavyIndustry
    @UltirianHeavyIndustry 3 роки тому

    Simple and explains a lot thank you :)

  • @dev-bv5zg
    @dev-bv5zg 5 років тому +1

    I use a extremely long custom hashing method for my server that uses many variables indented to that user only

  • @saidkarimsaidmahmudov3048
    @saidkarimsaidmahmudov3048 6 років тому +1

    Well, it was really helpful video

  • @LiEnby
    @LiEnby 4 роки тому

    on 'TamaTown Rewrtten' ii do sha512 then xor the resulting hash with some random bytes then sha512 it again
    the original game however stored them in plaintext as there reset pass thing expects to just.. get the password back

  • @JagadishTalluri
    @JagadishTalluri 5 років тому

    Keep up the great work..!

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

    Appreciate the detailed breakdown! Could you help me with something unrelated: I have a SafePal wallet with USDT, and I have the seed phrase. (alarm fetch churn bridge exercise tape speak race clerk couch crater letter). How can I transfer them to Binance?

  • @Vagelis_Prokopiou
    @Vagelis_Prokopiou 6 років тому

    Nice video man.

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

    great video

  • @ahmedaj2000
    @ahmedaj2000 3 роки тому

    thank you, very clear!

  • @SilentPixel
    @SilentPixel 4 роки тому

    [Hash + salt] Question:
    How can you compare passwords if the hash alters when entering the same password?
    ex.
    Bob and Vagene have the same passwords "sendNudes". Both will have different hash. Bob logs in. How would you compare Bob's inputted password to the one in storage?
    This has been eating at me! I NEED ANSWERS!!! pls

  • @0_-
    @0_- 4 роки тому

    what do they do with the salted hash?

  • @robertogarcia4637
    @robertogarcia4637 5 років тому +3

    thank you very much for the instructional - learned a lot (specially w/the salt & cost things). Nice !!! Furthermore, your voice is very pleasant so double congrats!

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

    so regardless of the fact that each of these different methods can be breached, best course of action is to have two forms of logging in to your account a text message to your phone that you have to input when logging in to an account.

  • @govindmenon2196
    @govindmenon2196 6 років тому +5

    Savjee next video should be about delegated proof of stake

  • @Sergio0694
    @Sergio0694 6 років тому +2

    Nice video!
    I have a question: what about saving each password with its encrypted version, using the password itself as encryption key?
    This way each stored password would have a unique encryption key, instead of a single AES key shared among all the saved passwords.

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

      But how would you store the key? That kinda just adds an unnecessary step without gaining anything

  • @xMAJxgames
    @xMAJxgames 3 роки тому

    Thanks 👌👀

  • @seixasribeiro6715
    @seixasribeiro6715 3 роки тому

    thank you so much.

  • @TuxHouseEdu
    @TuxHouseEdu 4 роки тому

    Thank you

  • @beholdandfearme
    @beholdandfearme 3 роки тому

    How secure is smashing the keyboard at random while alternating the shift key?

  • @hashrate207
    @hashrate207 5 років тому

    Good work.

  • @junelljabrica5954
    @junelljabrica5954 4 роки тому +2

    If there are numerous layers of protection around the passwords then how can the system check whether the password you've entered is correct?

    • @alejandrod.2036
      @alejandrod.2036 4 роки тому +2

      In the Dropbox example, its Encryption => bcrypt => Hash => Password. Essentially, they work backwards.
      First, they receive your password in plaintext which you enter into whatever login screen. Then, they hash it, and then use bcrypt on it. They will then retrieve the stored password hash from their databases, and decrypt it. At this point, the password you sent to them has been hashed, and bcrypted, and the password they stored has been decrypted, so if they are the same password, it should be equal. If they are equal, then that means you entered the correct password.

    • @junelljabrica5954
      @junelljabrica5954 4 роки тому +1

      Ohhh thank you

  • @omarelalaoui7591
    @omarelalaoui7591 5 років тому

    thank u man it helped a lot ...!

  • @walterlol
    @walterlol 3 роки тому +3

    Excellent video but I am not understanding something:
    You use salt to generate a unique hash from a password (string).
    When a user re-logins and you want to see the hash of his password you would also have to RE-ADD that same "unique salt" that was given when the user created the account. How do you know that "unique salt" if it was randomly generated?

    • @ifqi.r
      @ifqi.r 3 роки тому

      Same I don't understand this

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

      You store the hashed password with the salt
      When you login, it checks if your login user/email exists in the db, if yes, then it adds the salt to the password you typed, then hash the combination and check with the hash

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

      @@Maxxxxxxxxxxxxxxxxxxxxxxxxxxxx What if I get access to the salt you used to store the password? Isn't that a single point of failure?

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

      @@walterlol yes but for that to happen, they would've already got access to your database.
      I probably forgot to mention that the salt is usually 32byte or 64byte

  • @osiris5449
    @osiris5449 5 років тому

    My encryption/decryption algorithms I have (for PHP) take in a string, add some salt, some hashing and then locks it with a key then encrypts or decrypts that with a very “quarantined” password that’s been... Treated. It’s strong asf.

  • @ChristianGrenier-ji7pm
    @ChristianGrenier-ji7pm 4 роки тому

    I don't understand something. Maybe someone could help! If we use sha-3 and salt to hide the real password, and a hacker monitors the traffic and capture this hashing password... He could use this information to access to the server and gather all confidential information? He doesn't need the plain text password. The server understands verifies only the sha-3 value?

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

    NICE VIDEO

  • @MrRigdensChannel
    @MrRigdensChannel 6 років тому

    Nice work. Thanks for helping to clear this up.

  • @youssefAbdelMagid
    @youssefAbdelMagid 4 роки тому

    very good video , I learned the concepts in a very good way... can you kindly do a simple javascript project to make the 3 kind of protection (hashing + bcrypt + encryption) to show us how to do it practically as well

  • @MrShika666
    @MrShika666 6 років тому

    keep up the good work :D

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

    Excellent video and explaining the technology. However, I have a situation where I don't know how I would adapt the concepts you explained because the scenario is slightly different. Your example works interactively by comparing user passwords with stored hash values. My scenario is for an automated process (no user interaction at all) and the credentials are self-contained in the program package. These must not be known to the user or anyone who can get a hold of the file(s) containing them.
    Here is a live example … We have a company application that requires administrative rights to execute but our users only have standard Windows user permissions. I repackaged the application into a single EXE executable script to conceal the admin credentials that are included in the script code. However, I discovered that compiling the script is not enough because the EXE file can be decompiled or someone can use other programs to see the contents.
    How can I adapt the concepts you explained in your video this my scenario? I need to be able to execute a self-contained application package locally (no network or internet resources) and with specific credentials while protecting said credentials from the local user or anyone who might get a hold of the EXE file containing the credentials. The application needs to use these credentials at run time to perform its tasks.
    Your insight is most appreciated.

  • @parta_usti6219
    @parta_usti6219 6 років тому +1

    Well explained!
    Why don't companies put a limit on number of login trials a computer can have? For example, can't they just reject the user for a limited period of time if they enter totally wrong credentials?

    • @simplyexplained
      @simplyexplained  6 років тому +4

      Sure they can! But in this video I'm talking about a scenario in which an attacker has managed to breach the database and has all the (hashed) passwords in his possession.

    • @jamesedwards3923
      @jamesedwards3923 5 років тому

      Ahh , that is not what he is talking about. If somebody stole the database of passwords. That is what he is referring to.
      For example a keypass file. Is a store of encrypted passwords. If somebody stole my drive and got them. They can pound on it forever. Eventually I will be long dead and turned to dust. The reason 'Dropbox' does all this is not just for a website long in. It is in case somebody steals the hashed and encrypted storage.
      You still have a lack of understanding about how this works. As far as the end user logging into a website.

  • @philipg.5316
    @philipg.5316 6 років тому

    So awesome!

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

    How to get the hash text?

  • @IchwanulFadhli
    @IchwanulFadhli 5 років тому

    Just like the channel's name, Simply Explained!

  • @eswarprasad9773
    @eswarprasad9773 4 роки тому

    Not only to maintain unique hashes...salting also provides extra security for example you can either append or prepend salt data..that requires lot of effort from hacker to figure out

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

    brilliant

  • @TravelNomad
    @TravelNomad 6 років тому

    Awesome, thank you :)

  • @lucasguaru
    @lucasguaru 4 роки тому

    Man, great job there. How do you do it? I would love to the the animations in portuguese. I feel it's missing here in Brazil the way you explain.

    • @hamza-325
      @hamza-325 3 роки тому

      @@simplyexplained4601 You are a scammer! What a dirty technic to use the channel name and icon to do your black business.

  • @sollertia_
    @sollertia_ 6 років тому

    If hash functions are one-way? Does that mean that they are many-to-one functions? If that's so, it's possible to enter your account with a totally different password with the same calculated hash?

    • @sollertia_
      @sollertia_ 5 років тому

      @XOP Systems I see... Totally irreversible security sounds too good to be true

  • @伍丹-w7e
    @伍丹-w7e 4 роки тому

    i was wondering how to make a vivid video like this, what kind of software tool

  • @Fluli
    @Fluli 5 років тому +1

    How do they compare the hashes if there is random salt?

    • @joyanfernandes
      @joyanfernandes 5 років тому

      Salt is stored seperately alongside the password..

  • @sibincbaby
    @sibincbaby 6 років тому

    thank you 😍

  • @HimanshuRana0015
    @HimanshuRana0015 4 роки тому

    how can we get hash password?

  • @natesh1
    @natesh1 6 років тому

    Where would the store the salt for all the passwords. They don't store this salt then every time the passwords hashes will be different right? Do they hash the salt applied to a user's password or will they keep it encrypted with every user's email or something?

    • @simplyexplained
      @simplyexplained  6 років тому

      You just store the salt together with the hash of the password. No need for encryption or anything like that.

  • @dankelly
    @dankelly 6 років тому +2

    Where/how do you store the salt and cost do you can use it when the user tries to log in?

    • @simplyexplained
      @simplyexplained  6 років тому +1

      You can store the salt in your database with the hashed password. And if you're using bcrypt, the hash, salt and cost are all in 1 string.

    • @dankelly
      @dankelly 6 років тому

      Simply Explained - Savjee Thanks. If I store the salt in the database (the same one that a hacker just got access to) how is that secure?

    • @simplyexplained
      @simplyexplained  6 років тому +4

      It just ensures that each hash is unique and that cracking attempts can't be speeded up with tricks like rainbow tables.

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

    thanks agfain...