Public key cryptography - Diffie-Hellman Key Exchange (full version)

Sdílet
Vložit
  • čas přidán 29. 07. 2012
  • The history behind public key cryptography & the Diffie-Hellman key exchange algorithm.
    We also have a video on RSA here: • Public Key Cryptograph...

Komentáře • 625

  • @dancarlson3045
    @dancarlson3045 Před 8 lety +554

    The color analogy is amazing. Great work simplifying a difficult and important concept.

    • @human.earthling
      @human.earthling Před 7 lety +14

      Yes! This is the first time I have understood this concept due to the color analogy.

    • @1986xuan
      @1986xuan Před 6 lety +6

      Analogies are so powerful

    • @jacquelinecahill4836
      @jacquelinecahill4836 Před 6 lety +2

      I really enjoyed this. Thanks for breaking it down.

    • @Percavius
      @Percavius Před 5 lety +2

      It's good in that it's simple, however unlike the discreet logarithm problem, you would be able to make a good estimate of the secret colour based on the starting colour and one of the mixed colours. For example if Eve received the starting colour yellow, and a mixed colour green, she can infer that the secret colour mixed in must be some shade of blue, which makes her search much easier. Recognizing this threw me off a bit at first.

    • @jsonkody
      @jsonkody Před 4 lety

      The concept is simple and genius.

  • @ChristopherCricketWallace
    @ChristopherCricketWallace Před 8 lety +295

    by far the best explanation of public key encryption EVER.

    • @ArtOfTheProblem
      @ArtOfTheProblem  Před 3 lety +5

      thanks for watching! stick around

    • @lennonmclean
      @lennonmclean Před 3 lety +5

      unfortunately, public key is completely different than key exchange. public key requires different keys to encrypt and decrypt, so there's no need for diffie hellman to agree on a secret key.

    • @ArtOfTheProblem
      @ArtOfTheProblem  Před 6 měsíci

      made another vid: czcams.com/video/OFS90-FX6pg/video.html

  • @albertoradice7713
    @albertoradice7713 Před 8 lety +16

    This is precisely how mathematical concepts should always be explained. You guys nailed it!

    • @ArtOfTheProblem
      @ArtOfTheProblem  Před 6 měsíci

      would love your feedback again czcams.com/video/OFS90-FX6pg/video.html

  • @wilkmasterflex
    @wilkmasterflex Před 11 lety +71

    A great illustration. Diffie-Hellman has a well-known, fun vulnerability. Spoilers: Eve, knowledgeable herself on color theory, intercepts messages between Alice and Bob not letting their messages go directly to them. Instead she creates a color of her own. Mixing it twice with each of Alice and Bob's colors she creates two keys. She can now read Bob's message, re-encrypt, and send to Alice and pose as Bob. Same goes in the other direction. If only Alice could trust Bob's color comes from him.

    • @Germanywithtripti101
      @Germanywithtripti101 Před 3 lety +4

      an underestimatted comment

    • @Arkalius80
      @Arkalius80 Před 3 lety +5

      This is why you typically use a digital signing algorithm like DSA to authenticate the messages from each party.

    • @lennonmclean
      @lennonmclean Před 3 lety +5

      if only (epic RSA foreshadowing)

    • @alittax
      @alittax Před 2 lety +10

      This is called the man-in-the-middle attack.

    • @AnimMouse
      @AnimMouse Před 2 lety +1

      Key signing parties!

  • @satnamo
    @satnamo Před 7 lety +74

    Martin Hellman said:
    The system...has since become known as Diffie-Hellman key exchange.
    While that system was first described in a paper by Diffie and me, it is
    a public key distribution system, a concept developed by Merkle, and
    hence should be called 'Diffie-Hellman-Merkle key exchange'
    if names are to be associated with it. I hope this small pulpit might help in that
    endeavor to recognize Merkle's equal contribution to the invention of
    public key cryptography.

  • @AjayPoriya
    @AjayPoriya Před 7 lety +174

    I nominate this video for OSCAR !!

  • @199NickYT
    @199NickYT Před 10 lety +46

    "While Eve is stuck grinding away at the Discrete Logarithm Problem"
    Hahaha that's definitely the best part right there.

  • @dm8144
    @dm8144 Před 3 lety +1

    I am typing typing this message in 29/10/2020 and this is one of the best and easiest explanation about public and private key system ever. well done.

  • @Nefariouspat
    @Nefariouspat Před 6 lety +3

    I've watched a few videos on public key cryptography, but never really understood how it worked until I heard this colour analogy. Absolutely phenomenal video!

  • @davidcalderon6062
    @davidcalderon6062 Před 7 lety +12

    this is the best explanation I've seen on anything.

  • @supernanotech1
    @supernanotech1 Před 3 lety +1

    Time hardened Encryption just like safe hardening how much time is needed to open it. I love this, this is the best way to explain encryption ever. I love how they have IBM sage running for this video also. Amazing

  • @AkashVermaNITian
    @AkashVermaNITian Před 9 lety +13

    Colors made it wonderful to comprehend... really impressing!

    • @ANTHONYBOOTH
      @ANTHONYBOOTH Před 9 lety

      Akash Verma now. I think that I understand how my Gizmo (for online banking) from HSBC works........

    • @Appoxo
      @Appoxo Před 3 lety

      I actually needed the numbers to kinda grasp the concept...

  • @jasoncorrigan9937
    @jasoncorrigan9937 Před 5 lety +7

    My background in advanced math concepts is somewhat limited, and so it's always been difficult for me to intuitively grasp how DH worked. After years of struggling, this is the one video that really drove the point home for me. Thank you!

    • @oliverbeck6839
      @oliverbeck6839 Před 5 lety +1

      dafuq YEARS? i grasped it in about 15 minutes lol

  • @georgiepentch
    @georgiepentch Před 4 lety +3

    Oh my god, your content would fit SO WELL into a podcast format! It's something we need!

    • @ArtOfTheProblem
      @ArtOfTheProblem  Před 4 lety +2

      Funny you say that, i'm working on developing a podcast right now. I was town between just using the audio from these or doing a new conversational approach. can you listen to the demo I posted last week and give feedback? czcams.com/video/1w4Y_sCDeCE/video.html

    • @georgiepentch
      @georgiepentch Před 4 lety

      @@ArtOfTheProblem wow sorry, I don't know why I just got this notification now, but I did listen to the demo and I loved it! Keep it up :)

  • @SomeOne-tb2sd
    @SomeOne-tb2sd Před 3 lety +1

    One the best and simplistic explanation of what appears to be a complex algorithmic process. Thank you.

  • @SomdeepSengupta
    @SomdeepSengupta Před 9 lety +77

    LOL ... I came for Diffe Hellman lesson. Got a lesson in Cold war politik.

  • @notmychairnotmyproblem

    THIS IS THE EASIEST EXPLANATION OF MODULAR MATH I'VE EVER SEEN
    Why didn't I have this channel 10 years ago when I was in college??!!

  • @Malmizaur
    @Malmizaur Před 8 lety +143

    wow finaly the video i was looking for with the best explanation and number proving examples
    thank you very much I also checked your chanel realy awesome

  • @earavichandran
    @earavichandran Před 4 lety +1

    Now i understand clearly about diffe Hellman method. Lovely and lively demo video. Thanks for making this wonderful video.

    • @ArtOfTheProblem
      @ArtOfTheProblem  Před 4 lety +1

      thanks please share and stick around for more content.

    • @earavichandran
      @earavichandran Před 4 lety

      @@ArtOfTheProblem yes.thanks for your valuable reply.

  • @appapurapu
    @appapurapu Před 8 lety +5

    Brilliant trick behind Diffie Hellman explanation is very clear.
    Thanks a Lot.

  • @xetronchan1059
    @xetronchan1059 Před 6 lety

    Most amazing and simple and clean explanation of Diffie-Hellman algorithm I've came across. Great!!!

  • @5mwa
    @5mwa Před 11 lety +1

    Good explanation, better than those explanations given by the professors in lectures...
    My tutors can explain this to me for 1 day and I still don't get it.
    Now I find this concept extremely simple.

  • @laurv8370
    @laurv8370 Před 6 lety +8

    Very nice! Hat off! One of the best explanations I have seen, and nice put into the story. however, when you swap those powers, you should use parenthesis, that is because generally, powering is not commutative. That is, a^b^c is not equal to a^c^b, modular or non modular powering. Powering is right-associative. But (a^b)^c=a^b*a^b*...a^b (c times) which is a^(b*c)=a^(c*b)=a*a*a*a.... (b*c times), which is (a^c)^b always, modular or not. This is due to the commutativity of the _multiplication_ operation. Not the powers.

  • @jon_hodl
    @jon_hodl Před 8 měsíci

    Still one of the absolute best videos for explaining asymmetric key pair encryption

  • @fireflies15
    @fireflies15 Před 2 lety

    "without letting Eve, who's always listening.."
    brilliant video, amazing explanation
    thank you!

  • @Kevi_N.
    @Kevi_N. Před 8 lety +25

    The trick in a nutshell:
    ( G^*a* mod P )^*b* mod P = G^*a*^*b* mod P = ( G^*b* mod P)^*a* mod P = *key*
    *a* and *b* - private numbers
    *key* - private key (same for both)
    G - public generator
    P - public prime module
    ( G^*a* mod P ) = *A*
    ( G^*b* mod P) = *B*
    *A* and *B* - public numbers
    both sites do:
    *A*^*b* mod P = *B*^*a* mod P = *key*

    • @yc4295
      @yc4295 Před 6 lety

      I try to calculate in Javascript but found it not the same, is there any wrong?
      According to the fomula "( G^a mod P )^b mod P = G^a^b mod P",
      Assume G = 3, a = 13, P = 17, b = 15
      Math.pow(Math.pow(3, 13) % 17, 15) % 17 = 10
      Math.pow(Math.pow(3, 13), 15) % 17 = 2
      Math.pow(Math.pow(3, 15) % 17, 13) % 17 = 10
      But 10 is not equal to 2

    • @romanmandeleil
      @romanmandeleil Před 6 lety

      Not clear how A^b = B^a

    • @uid26
      @uid26 Před 6 lety

      Paste this into console: Math.pow(Math.pow(3,15)%17, 13)%17
      Result should be 10

  • @SanjayShelat
    @SanjayShelat Před 5 lety

    This is an excellent explanation of what is usually a difficult issue to understand. Thank you!

  • @ninumedia
    @ninumedia Před 8 lety

    Thank you for taking the time to record and produce this video! Beautiful explanation.

  • @AgglomeratiProduzioni
    @AgglomeratiProduzioni Před 7 lety

    For a few months, my teacher didn't manage to explain this to a class.
    In 8 minutes, this video can explain it to every dummy.
    If it's simple, keep it simple.

  • @skidude9800
    @skidude9800 Před 5 lety

    Single best explanation on any cryptography concept I've seen.

  • @mfratto
    @mfratto Před 7 lety +3

    That's called magic math. Great video. Very helpful. Now to watch the series.

  • @wreilly09
    @wreilly09 Před 2 lety

    THIS DID IT!! You helped me understand a few points that, in my opinion, we’re not pearly presented in other videos. Thank you very much.

  • @mmuarc
    @mmuarc Před 3 lety

    Best explanation you can find on the internet about this. The color analogy is Godlike

  • @marelloeg6988
    @marelloeg6988 Před 4 lety

    Videos like this are always remind me why I am fascinated about the cybersecurity field! This is a fantastic video!

  • @kanaverum
    @kanaverum Před 7 lety

    Perhaps the best explanation of private key exchange on the internet. Thanks very much for this video!

  • @IgorAherne
    @IgorAherne Před 7 lety +6

    This helped me understand it:
    Imagine Bob and Allice want to teleport to some secret planet without Eve joining them.
    1) *Neither Alice nor Bob have a planet in mind where they would like to meet*. They want to use their own piece of puzzle to mutually arrive at the same planet. Depending on which private keys they've chosen initially the final planet will be in the very different locations of universe.
    2) They publicly pick which galaxy they want to be in
    3) They can pick any number they want, scramble it with the publicly known galaxy's name, and send it over to each other.
    4) now each one has the scrambled piece of another person. Both pieces were scrambled with the same galaxy.
    5) scrambling Allice's piece with the scrambled code received from Bob will teleport her to planet XYZ.
    6) Bob will do the same thing with the scrambled code received earlier from Alice, which will teleport him to planet XYZ
    because Eve didn't mix-in any of her information into the exchanged (scrambled) messages and was only listening to their conversation, she is unable to align herself with the planet XYZ where those two went.
    Even if Eve would substitute her message instead of Bob', this would only result Alice and Eve arriving to FZK, without Bob. Alice would see that it's not Bob and no information would be disclosed.

  • @duallancers001
    @duallancers001 Před 8 lety

    This was dramatically more helpful than the meager amount of info my book offered on the subject; thank you.

  • @KILO993
    @KILO993 Před 7 lety

    I found your video while studying for a technical certification. Very well done. Thank you :D

  • @mash0000
    @mash0000 Před 8 lety

    Use of mixing colors as an analogy to explain the DH concept was brilliant. I know DH concept well, but never thought of the color analogy. Good job!

  • @roxiogamer
    @roxiogamer Před 7 lety +1

    Oml dude this is exactly what I have been looking for! A visual explanation on how it works ! 10/10

  • @MohamedAnsari_H
    @MohamedAnsari_H Před 7 lety +4

    fantastic video, explained something I've wondered for a long time, Thank you.

  • @blackmouthblackface
    @blackmouthblackface Před 8 lety

    Much better than the short version which confused the hell outta me @4:35!
    Thank you very much for posting this!

  • @asdunn2
    @asdunn2 Před 7 lety

    I learned more from this video than 5 weeks worth of lecturing in my university class.

  • @valor36az
    @valor36az Před 4 lety +5

    I don’t know what your background is just amazing explanation of concepts

    • @ArtOfTheProblem
      @ArtOfTheProblem  Před 4 lety +3

      I did a degree in CS and Engineering however I've always enjoyed explaining things. thanks for the feedback

  • @KautilyaSave
    @KautilyaSave Před 8 lety

    Great video explanation. I loved the demonstration of colors & Mod Calculus Clock rope.

  • @CarlitoProductions
    @CarlitoProductions Před 4 lety +1

    if this was 2 hours, i'd still watch it. awesome explanation

  • @wassollderscheiss33
    @wassollderscheiss33 Před 9 lety +18

    I love it! (this is the first thing I publicly love on the internet) :-)

    • @ArtOfTheProblem
      @ArtOfTheProblem  Před 9 lety +2

      wassollderscheiss33 That's so awesome. Thanks for the love

  • @thomaspribitzer5373
    @thomaspribitzer5373 Před 6 lety

    that colour analogy was mind blowing. made my day!

  • @rschintalapati
    @rschintalapati Před 8 lety +1

    Amazing explanation! The best video about DH Algorithm. Thank you, it really helped me a lot.

  • @aymanjabali
    @aymanjabali Před 4 lety

    Thank you sooo much for putting time and work into this video.
    you've helped a lot of people around the world

  • @johnmacward
    @johnmacward Před 9 lety

    Brilliant explanation about key exchange for those of you interested in how your data is encrypted over the web. Ok, when the maths comes you need to pay attention but all in all the best explanation I've found.

  • @hdlopesrocha
    @hdlopesrocha Před 2 lety

    Cryptography 101, the best intro ever!

  • @KevinElamMusic
    @KevinElamMusic Před 4 lety +17

    Excellent video! My only complaint is the explanation of "how Alice did the same calculation as Bob" from 7:27 to about 7:40. Starting at 7:27, we see that "12 = 3^13mod17". Then conveniently, right at 7:34, when that figure is substituted into Alice's original expression, the "mod 17" DISAPPEARS and the 12 is simply replaced by "3^13". Although this IS mathematically correct, it REQUIRES a rather advanced principle of modular arithmetic: namely, that [(a*mod c)^ b]*mod c = (a^b)mod c. (In the example from the video, a = 3^13, b is 15, and c is 17). So, you effectively CAN simply remove the extra "mod c" term, but the video glosses over this difficult but crucial step. My sister and I just spent 2 hours figuring out the proof for this principle. If anyone's interested I can share a photo of the completed proof. (It can be found online also).

  • @greg4529
    @greg4529 Před 8 lety +2

    Amazing and excellent explanation. Better than my lecturer!

  • @mort8568
    @mort8568 Před 4 lety

    I'm not even a math guy or even like numbers that much but every once in a while I come back to this video purely because of how entertaining it is

  • @ROCDUC
    @ROCDUC Před 11 lety

    Your videos are great. They have interesting visuals as well as an easy voice to listen to.

  • @jacquesvanderwesthuizen7287

    Very well explained. I would recommend this video to anyone studying the arts of encryption/decryption.

  • @IAmSinister5
    @IAmSinister5 Před 7 lety

    This is such a good explanation, it makes so much sense logically to me now.

  • @akshaymahale6521
    @akshaymahale6521 Před 8 lety

    It was just awesome, u played wid the colors and dat made the algo go so simple to understand !!!

  • @orionjonesy226
    @orionjonesy226 Před 8 lety

    Thank you for making this video, great explanation and brief history of the concept! Keep on, keeping on!

  • @scienceblossom6197
    @scienceblossom6197 Před 5 lety

    Can't thank you enough. Awesome video. I wish you also explained how the digital signature works in order to avoid Eve pretending to be either Bob or Alice.

  • @ashutoshnautiyal9625
    @ashutoshnautiyal9625 Před 5 lety

    this kind of learning material is actually i m looking for. Great explanation
    .

  • @LGM4
    @LGM4 Před 7 lety

    LOL I've been explaining this idea using colors for about 6 months, then I find your video! love it!

  • @atom2ueki
    @atom2ueki Před 10 lety

    definitely an awesome video show you how to understand Diffie-hellman key exchange

  • @tasoskontos10
    @tasoskontos10 Před 5 lety

    Great video! It helped me an insane amount understanding the public key cryptography consept.

  • @davidr.flores2043
    @davidr.flores2043 Před 4 lety +3

    Fantastic. I've watched many videos on this same topic; nevertheless, this is The Best one. A million thanks for breaking down difficult concepts in an easy, understandable way. Kudos!

    • @ArtOfTheProblem
      @ArtOfTheProblem  Před 4 lety +1

      appreciate the feedback. I always watch every video on a topic before making a new one, so i'm glad you noticed :)

  • @MalaAnsoo
    @MalaAnsoo Před 3 lety

    This is ingenious. Thanks for sharing your knowledge and creativity and helping people to understand so easily.

  • @blackcheetah4550
    @blackcheetah4550 Před 4 lety

    The best explanation on CZcams .. thank you very very much ❤️❤️

  • @fubonte2272
    @fubonte2272 Před 7 lety

    why can't i like this video more than once? thank you for an excellent explanation

  • @godfreytan1001
    @godfreytan1001 Před 7 lety

    Deep concept but simply explained. Excellent!

  • @piriyaie
    @piriyaie Před 6 lety

    AWESOME!!!! Please keep on teaching... You did a great job!!!

  • @mortenbrodersen8664
    @mortenbrodersen8664 Před 6 lety

    Best explanation I have ever seen. Well done!

  • @princyep8409
    @princyep8409 Před 7 lety +1

    The articulation is excellent! Great read

  • @Yashuu96
    @Yashuu96 Před 7 lety +1

    This video is so awesome! Had been looking for the answer to this problem.

  • @abeer_nawaf_sul
    @abeer_nawaf_sul Před 8 lety

    very smart.. my teacher also explained it in a wonderful way so it stuck in our minds .. bless him

  • @CrazyDoBlues
    @CrazyDoBlues Před 7 měsíci

    I really really like the music in this video. It mysterious. I like the fact that you take your time to explain and it is also visual. Nice creative video.

    • @ArtOfTheProblem
      @ArtOfTheProblem  Před 6 měsíci

      Took 2 years to finish this one, finally live would love your feedback: czcams.com/video/OFS90-FX6pg/video.html

  • @danyellbaptiste1055
    @danyellbaptiste1055 Před 5 lety +3

    EXCELLENT EXPLANATION. Thank You!

  • @houyao2147
    @houyao2147 Před 5 lety

    Amazing!!!! This is the best explanation that i've ever seen.

  • @h.kkhandelwal9142
    @h.kkhandelwal9142 Před 9 lety

    Lovely videos. .... awesome way of descriptions. .... awesome job.... very well done guys

  • @nabeel250575
    @nabeel250575 Před 11 lety

    This is really a great set of videos. Thanks and great work.

  • @Konraden
    @Konraden Před 11 lety

    I'm reading wiki trying to understand how public-key encryption works (I'm told its better than symmetrical encryption). I remember someone tried to explain this before using colors, so a quick search--and I find your video. This is a great video.

  • @redrover06able
    @redrover06able Před 9 lety

    Great video. I like the intro and examples used.

  • @jaketarren
    @jaketarren Před 11 lety

    Linked to my cryptography teacher, this is how he should explain this to the class.

  • @jackdrost7291
    @jackdrost7291 Před 6 lety

    Excellent explanation of a hard thing to understand. Thank you! (Cool background music too!)

  • @AmanShaikh-qr5lh
    @AmanShaikh-qr5lh Před 5 lety

    That's a wonderful example!!! Mind blowing 😍😍😍

  • @SninjaThirteen
    @SninjaThirteen Před 8 lety

    Thank you so much. Really helped me understand the concept. And I thought I was just going to have to fail my certification exam.

  • @mustafarangwala5657
    @mustafarangwala5657 Před 7 lety

    Very nice i was thought about the color logic in my college but i wondered how it would work in numbers.Excellent video.

  • @aiayumi
    @aiayumi Před 6 lety

    Amazing you fully explained this using paint!

  • @carlossiverio3570
    @carlossiverio3570 Před rokem

    This is the best explanation by far.

  • @ketansanil6046
    @ketansanil6046 Před 10 lety

    Algorithm explanation was really simple and effective

  • @richardgreenstone1095
    @richardgreenstone1095 Před 8 lety +1

    Outstanding explanation.

  • @Derbauer
    @Derbauer Před 5 lety

    Just......beautifully and succinctly explained!

  • @infinitybiff
    @infinitybiff Před 7 lety

    well this was an incredible video. such a good explanation. well done!

  • @sics993
    @sics993 Před 9 lety

    Really good explainded. Helped me a lot, thank you for making this!

  • @frank4738
    @frank4738 Před 6 lety

    Great video, clear explanation. Thanks

  • @ankitprajapati3768
    @ankitprajapati3768 Před 7 lety

    Great job! Very good explanation.

  • @abhishekupadhyay6570
    @abhishekupadhyay6570 Před 6 lety

    Amazingly explained...I think it is bestest explanation ...thanks for sharing..

  • @thefirstfishadvancetheland8980

    This is so beautiful theory. Really amazing!! Thank you for showing:)

  • @gowthamiirao9010
    @gowthamiirao9010 Před 8 lety

    Very well explained. Thanks a tone for your effort.

  • @TheLexusAlexey
    @TheLexusAlexey Před 3 lety +1

    I just love this, everything is so much easier!