Secret Key Exchange (Diffie-Hellman) - Computerphile

  Рет қаралды 991,728

Computerphile

Computerphile

Күн бұрын

Пікірлер: 624
@OscarAlsing
@OscarAlsing 7 жыл бұрын
Poor Alice and Bob. Always exposed. Always out there. Never left alone. ❤️
@kduhtdkzrt
@kduhtdkzrt 7 жыл бұрын
To answer the question about the aggressive tone in advance, I'm drunk, not austistic. No harm meant.
@ragnkja
@ragnkja 7 жыл бұрын
Eve is always stalking them...
@kduhtdkzrt
@kduhtdkzrt 7 жыл бұрын
Damnit. You're right.
@malporveresto
@malporveresto 7 жыл бұрын
#Pray4AliceAndBob
@TruthNerds
@TruthNerds 5 жыл бұрын
Meh. What if Alice and Bob are just attention whores?
@ScottPlude
@ScottPlude Жыл бұрын
5 years later and this is still done a million times a minute out there. Very well explained, thank you!
@nishantdalvi9470
@nishantdalvi9470 Жыл бұрын
Hey can you please clear my doubt, Actually I am kind of bit confused about the ordering of the events which takes place while TLS handshake does the digital certificate part which server shoots to the client to tell the client it's integrity and provide client it's public key happens before Diffie Helman key exchange or after it or eventually during the key exchange
@ScottPlude
@ScottPlude Жыл бұрын
@@nishantdalvi9470 why are you responding to me after 5 months? FIVE MONTHS!?!?!?!
@denisr5250
@denisr5250 5 жыл бұрын
The analogy with colors in this video is pure genius! Thank you guys, this was an amazing introduction to Diffie-Hellman!
@aerodynamico6427
@aerodynamico6427 8 ай бұрын
Diffie-Hellman's original paper will drive you up the wall.
@RobertMilesAI
@RobertMilesAI 7 жыл бұрын
Nice! This is a subject I should have covered immediately after the Public Key Cryptography video, since that one lays out the problem of exchanging keys that Diffie-Hellman solves. Great to see such a clear explanation, I doubt I'd have gone to the effort to get coloured liquids!
@mojacodes
@mojacodes 2 жыл бұрын
robert miles with only 4 likes and no replies? also, first!
@AyushMo
@AyushMo 2 жыл бұрын
Your public key crypto video was amazing! So was this one !
@Democracy_Manifest
@Democracy_Manifest 2 жыл бұрын
Is it a 'clear' explanation though, or a coloured one?
@nO_d3N1AL
@nO_d3N1AL 7 жыл бұрын
What I like most about this channel is the ability of the presenters to explain things simply without mathematics. That is real teaching, not reciting formal proofs and equations
@WofWca
@WofWca 6 жыл бұрын
Reciting formal proofs is also teaching, just for more advanced.
@CGoody564
@CGoody564 7 жыл бұрын
Watched the defcon presentation from years ago given by the creator of the diffie-helman key exchange... It was absolutely fascinating. Dude is an innovator and pure genius. Seems like a nice guy as well
@frenchify7506
@frenchify7506 6 жыл бұрын
I really like this guy. Been watching and rewatching his lessons for like 3 hours.
@ennis_w
@ennis_w Жыл бұрын
Everytime I feel confused by e2ee or key exchange, I will come back and see these videos. Really helps.
@dmatuzo
@dmatuzo 7 жыл бұрын
How curious, PBS Infinite Series have been talking about encription in the last few days. Now I've got double the encryption bonanza! This has been a good week.
@smob0
@smob0 7 жыл бұрын
I think the next video in the series will be about this key exchange.
@remuladgryta
@remuladgryta 7 жыл бұрын
Further, one of the Royal Institution's recent videos used the same color mixing analogy to demonstrate key exchange.
@curtmack
@curtmack 7 жыл бұрын
The color mixing analogy has been used to describe Diffie Hellman key exchange for a couple of decades at least.
@heyraylux
@heyraylux 7 жыл бұрын
curious indeed.....
@phoenix2464
@phoenix2464 7 жыл бұрын
yessss him again
@SuviTuuliAllan
@SuviTuuliAllan 7 жыл бұрын
maxwell,cpp sexy, right?
@kduhtdkzrt
@kduhtdkzrt 7 жыл бұрын
komma cpp ?!
@treyquattro
@treyquattro 7 жыл бұрын
in for a penny, in for (Dr.) Mike Pound
@Ozziepeck11
@Ozziepeck11 7 жыл бұрын
wtf?!!
@ABurntMuffin
@ABurntMuffin 7 жыл бұрын
Mike is the best. Except for maybe Parker.
@goshisanniichi
@goshisanniichi 7 жыл бұрын
Random squirting of fluids... exactly what I wanted to see this early in the morning...
@therealquade
@therealquade 7 жыл бұрын
the random squirting of fluids, by alice and bob, out in public.
@troyjones9344
@troyjones9344 7 жыл бұрын
ohhhhhh myyyyyyyy
@TheWolfboy180
@TheWolfboy180 7 жыл бұрын
Thomas Carrel It’s ok, no one minds if it’s done by Dr. Mike Pound
@xxwaldi
@xxwaldi 4 жыл бұрын
@@therealquade yeah they should rather put it in the privates
@mrsmith1097
@mrsmith1097 4 жыл бұрын
Is that Super Sonico?
@kingbran923
@kingbran923 2 жыл бұрын
Sir, you have sincerely helped me with my homework far more than my textbook ever could. Thank you so much for making these videos! :D
@CristiNeagu
@CristiNeagu 7 жыл бұрын
1:04 First rule of cryptography: Unless your job is to create cryptographic algorithms, *never* implement your own cryptographic algorithms. You *will* screw it up.
@paterfamiliasgeminusiv4623
@paterfamiliasgeminusiv4623 6 жыл бұрын
Nice advice because it is such a tempting prospect.
@baatar
@baatar 6 жыл бұрын
Why would you even want to implement your own in the first place?
@0ijm3409fiwrekj
@0ijm3409fiwrekj 6 жыл бұрын
@@baatar for funnnnnn
@paulzapodeanu9407
@paulzapodeanu9407 5 жыл бұрын
In high school I thought I was being clever and did this. Took my deskmate about 1/2 an hour to crack it. Despite many evidence to the contrary, I still think I'm clever.
@sir_slimestone3797
@sir_slimestone3797 5 жыл бұрын
@@paulzapodeanu9407 Let me guess, simple substitution
@ironman85000
@ironman85000 7 жыл бұрын
I'm a simple man. I see a computerphile video with Mike Pound, I click like
@StuffOffYouStuff
@StuffOffYouStuff 4 жыл бұрын
Fantasticly simple and easy to understand explanation, thank you for this. I'm studying for the Sec+, so basics atm. But i've been getting very confused by some of the terms around encryption. I'm going to ask a completely naive question. I understand to encrypt there are two components, 1) the algorithm, 2) the key. I've seen Diffie-Hellman described as a) a public key encryption algorithm, b) a key exchange protocol, c) a public-key encryption protocol. RSA is also described as an asymmetric public key encryption algorithm. Diffie-Hellman only generates keys, it does not provide an algorithm for use with those keys to then encrypt data RSA also generates keys, but can also encrypt/decrypt data So, my questions/assertions: 1) Is there general misuse of the term "encryption algorithm" or just "encrpytion" as to what that encompasses? What should it encompass? 2) My current feeling is, Encryption = 1) the algorithm, 2) the key (but not the key generation). Encryption algorithm = 1) literally just the algorithm, not the key. EErr, i don't know what term to use that would also encompass the key generation bit. So yeah confused still. 2) The process of Diffie-Hellman key generation/exchange is still considered an encryption algorithm because it outputs data (the shared public) that makes deciphering the input to create it practically impossible? 3) Diffie-Hellman is considered asymmetric because it generates a private/public key pair first? 4) Diffie-Hellman can also be used to generate asymmetric keys ONLY? 5) So the private symmetric keys Diffie-Hellman creates would form the symmetric keys for one of the symmetric encryption algorithms like RC4/AES? 4) Looking back at the above then, the term encryption looks like it should actually include the discrete phase of key generation/distribution?
@tudoralexandruienulescu2214
@tudoralexandruienulescu2214 10 ай бұрын
I am also studying Sec+ From what I (think I) know, here are my answers: 1 - There is no misuse. Encryption describes the goal of the action, the algorithm is what any algorithm is. A chain of operations for a specific goal. "Encryption algorithm" is fine. 2 - You are overthinking I guess. "Encryption" is a term used to describe the topic of the discussion (for example). The term "Encryption algorithm" is getting into details and explaining what is, why it's needed, how it works (each step of the process aka the algorithm), etc. 3 - Diffie-Hellman is assymetric because the Bob and Alice don't have all the same keys in their own pockets. Alice does not have the "b" key and Bob does not have the "a" key. 4 - From what I learned thus far, yes. DH is the general example for generating asymmetric keys. 5 - YES 6 (or maybe 4) - I don't think so. encrypting something using a cypher is one thing, using a handshake or other ways to communicate between parties is another (just like DH). The DH is the actual method used to sharing of a secret key between two people who have not contacted each other before. It does not refer to the cyphers at all.
@dasjucktmichnicht6727
@dasjucktmichnicht6727 2 жыл бұрын
i love the style of the whole channel! proofs nobody really needs power point or laborious anmations.
@Laurabeck329
@Laurabeck329 7 жыл бұрын
This demonstration was a classic Parker square.
@CreamyRootBeer
@CreamyRootBeer 7 жыл бұрын
Matt Parker says "No."
@khawajaazfarasif4865
@khawajaazfarasif4865 2 жыл бұрын
Beautifully explained.
@user-qf6yt3id3w
@user-qf6yt3id3w 7 жыл бұрын
One thing I liked about Hellman was that not only did he invent a clever way to distribute private keys he also invented a decent tasting mayonnaise with an enormous shelf life. It has been forecast that a jar or mayonnaise will still be more or less OK even after being stored at refrigerator temperatures for five thousand years. If the Ancient Egyptians had known about Hellman's mayonnaise recipe and had stored a few sealed jars in the pyramids we'd still be able to open them and make a decent tuna mayo sandwich. Probably long after the nuclear apocalypse we'll be eating Hellman's Mayonnaise probably with roach meat. Or maybe the roaches will win and eat Human Mayo sandwiches.
@aliweber3906
@aliweber3906 11 күн бұрын
I never knew that :)
@quintencabo
@quintencabo 2 ай бұрын
This is such a great video! Honestly the most intuative explination I have seen. Even kids can understand this.
@daviaquino3625
@daviaquino3625 Жыл бұрын
I am writing Javascript decryption libraries for Apple Pay, Google Pay and Shopify and came across this video trying to learn more about the theory. Fantastic!
@giorgibakradze8734
@giorgibakradze8734 3 жыл бұрын
Thank you. This video really made the concept of Diffie-Hellman key exchange clear for me.
@davidoconnor9167
@davidoconnor9167 3 жыл бұрын
Excellent, clear explanation, and the colours really showed the process visually, thanks guys!
@kigtod
@kigtod 7 жыл бұрын
A very clear explanation as usual, but it would have been nice for Mike to briefly mention that a trio at GCHQ - Ellis, Cocks and Williamson - came up with the idea first.
@waspstomper6250
@waspstomper6250 3 жыл бұрын
Shut up
@Seansaighdeoir
@Seansaighdeoir 4 ай бұрын
The use of the coloured liquids is genius and perfectly illustrates the problem of understanding that despite the visible colour combination it in no way exposes the constituent components.
@rithviksaranumasaravanan7925
@rithviksaranumasaravanan7925 27 күн бұрын
This was the next video I saw after seeing the ECC video and Diffie-Hellman concept is now understood. Dr Mike on top. btw I'm about watch the mathematical version of Diffie-hellman so I'll see you there.
@MrMamfbr
@MrMamfbr 2 жыл бұрын
4:55 that's the most important part in my opinion, and the video kinda dismiss it as granted. If the yellow is public, I can calculate the difference to it. How do you make sure it cannot be reversed? this is the magic
@LHyoutube
@LHyoutube 3 жыл бұрын
I would have understood a lot more mathematics had it been presented so intuitively!
@dubonbiton1706
@dubonbiton1706 4 жыл бұрын
What an incredible video! Fantastic way to understand how VPN key exchange works!! Thumbs up
@unvergebeneid
@unvergebeneid 7 жыл бұрын
2:53 that sound though! =)
@chrisgsauce
@chrisgsauce 2 жыл бұрын
I've never seen a clearer explanation of DH. Thanks guy!
@Deiwulf
@Deiwulf Жыл бұрын
Finally explanation of the main part that's missing like literally everywhere else. Good lord.
@fridric2916
@fridric2916 4 жыл бұрын
Dr. Mike Pound is just a great great teacher
@programmercouple
@programmercouple 3 жыл бұрын
Finally understood the Diffy-Hellman concept. Thanks
@syeduzairahmed
@syeduzairahmed 2 жыл бұрын
Very simplified approach of teaching. Great video
@rursus8354
@rursus8354 3 жыл бұрын
I'm darned *interested* in the mathematics of Diffie-Hellman and whatever, I'm just a little bit rusty - please don't skip the maths just because the non-computing world believes that ignorance is a virtue, but keep it simple so that most of us aren't lost.
@jme_a
@jme_a 7 жыл бұрын
Great video, but surely the simpler method with the colours would have been to have ramekins with clear water and then add X drops of food colouring for the stages?! 😂
@AloisMahdal
@AloisMahdal 7 жыл бұрын
Apparently Mt.Dew vending machine was closer than a food coloring vending machine.
@AlexRasengan1337
@AlexRasengan1337 6 жыл бұрын
But that wouldn't work, the private keys are different.
@agentjeyjey9757
@agentjeyjey9757 4 жыл бұрын
@@AlexRasengan1337 Not for the private keys, for the public key (g)
@kanskejonasidag1
@kanskejonasidag1 7 жыл бұрын
Mike Pound?? Instant like! :D
@almiskea
@almiskea 11 ай бұрын
Great explanation, I have been searching and no one has explained it as well Thank you
@lumanaughty1025
@lumanaughty1025 4 жыл бұрын
This might be the quarantine talking, but I’m starting to get a crush on this dude
@ruijiebai7531
@ruijiebai7531 4 жыл бұрын
lol,i feel you ,i wish my lecturer could have his face then i wont skip any lecture
@rezaghochkhani
@rezaghochkhani 4 жыл бұрын
This is the greatest video I have watched on encryption, ever! Thanks a lot.
@realprathap4732
@realprathap4732 6 ай бұрын
I studied Diffie-Hellman in college from a textbook, but after a few years, I forgot it because I shifted to a different field. And now I am watching this KZbin videos random, and my reaction, Wooow, yeah, that makes sense now! 😯
@42svb58
@42svb58 3 жыл бұрын
Best breakdown ever
@WilliamsLovesToLearn
@WilliamsLovesToLearn Жыл бұрын
what was the purpose of n in this video?
@danielf.7151
@danielf.7151 Жыл бұрын
It is used in the same steps as g. that only matters for the actual math, the rough principle is the same
@florianfanderl6674
@florianfanderl6674 3 жыл бұрын
Recently discovered this channel and I love it ❤
@Crypto_Wiz
@Crypto_Wiz Жыл бұрын
Brilliant. My professor could not even come close to such a great explanation.
@aciddraconian13
@aciddraconian13 3 жыл бұрын
I have been so clueless with cryptography and cannot find one braincell to focus on most reading material (darn you ADHD) but stumbled along here and it made complete sense, wow.
@wiltonlawrence882
@wiltonlawrence882 5 жыл бұрын
This is the best explanation of key exchange i came across, thanks for uploading this
@grrr1351
@grrr1351 7 жыл бұрын
I just love this guy! Keep him comin'.
@matteoagius-darrigo7632
@matteoagius-darrigo7632 Жыл бұрын
my favorite video on youtube!
@edmundderek
@edmundderek 4 жыл бұрын
so glad that your video made it in the bibliographie of my PFE
@DouroFusion
@DouroFusion Жыл бұрын
amazing video, thanks Dr Mike Pound!
@BackWithTheBoom
@BackWithTheBoom 4 жыл бұрын
Mathematical squirtings, LOVE THIS GUY XD, i follow this guy almost for a couple years, such a MVP
@999999GALLADE
@999999GALLADE 7 жыл бұрын
I was actually looking for a good Diffie Hellman video a couple of days ago - how convenient!
@sparkplugtire
@sparkplugtire 3 жыл бұрын
Awesome explanation!!!
@wakomike29
@wakomike29 4 жыл бұрын
This helps soooo much with my university studies! Dr. Pound, your the best.
@tejasanvekar7367
@tejasanvekar7367 4 жыл бұрын
Huge fan of u sir....started encryption watching ur videos.....love ur accent
@DaMaZa1234
@DaMaZa1234 4 жыл бұрын
I would like to Thank you Dr.Mike Pound for this information. it make me understand what is Diffie-Hellman is and i would like to take this video to be your reference in my work i have been put credit for u i really appreciate what u have done for us this video is just 8min it fun and i love this video Thank you
@tapewormerbinkosti3141
@tapewormerbinkosti3141 Жыл бұрын
One of these mathematical functions is: Alice sends g to the power of a (modulo prime number p). Bob sends g to the power of b (modulo p). The shared key is then: g to the power of a (modulo p) to the power of b (modulo p) which is the same as g to the power of b (modulo p) to the power of a (modulo p).
@akshaykkapoor
@akshaykkapoor 6 жыл бұрын
Best explanation of DH with such a simple example ..great work ..keep it up
@GordonjSmith1
@GordonjSmith1 3 жыл бұрын
What a wonderful demonstration!
@Jordan-hz1wr
@Jordan-hz1wr 2 жыл бұрын
I came here because it's 2022 and I still don't know what Diffie-Hellman is, and at this point I'm too afraid to ask.
@datag1199
@datag1199 11 ай бұрын
Great visual analogy. Thank you!
@benjohnson6251
@benjohnson6251 7 жыл бұрын
Such a good video! Really clever concept, and the colour analogy is great! Cheers! :D
@hamzamunir8180
@hamzamunir8180 4 жыл бұрын
this guys saved my semester.
@tomasxfranco
@tomasxfranco 7 жыл бұрын
I love Mike.
@evarakovska3302
@evarakovska3302 3 жыл бұрын
Thanks for whole serie of videos! I found something useful for my students and it is great!
@willk7184
@willk7184 3 жыл бұрын
Neat, I finally understand the basics of something I was always curious about. But now I'm thirsty.
@kennyethwong5214
@kennyethwong5214 3 жыл бұрын
your presentation is so clear and understandable, thanks a lot
@marcopetaccia88
@marcopetaccia88 2 жыл бұрын
Spectacular explanation. Thanks !!!
@sachinpandeyatd
@sachinpandeyatd 3 жыл бұрын
tomarrow I have new sec and cryptography exam, and this topic has high possibility of coming, this is the best explanation I found,
@1992Razvy
@1992Razvy 7 жыл бұрын
Great video and execution. Always I need to know how something in practice works to know if I really need it in my project and then I need to know the math behind to reproduce myself. I just got here again after watching the math video, beause I have to go back to solidify the knowledge.
@videogamemusicandfunstuff4873
@videogamemusicandfunstuff4873 7 жыл бұрын
Dr. Mike is the best!
@MakerTim
@MakerTim 7 жыл бұрын
Thanx! I got NOW my college about EXACT this and your explanation is way more clear
@Dashrendar2507
@Dashrendar2507 6 жыл бұрын
Hey, thanks! I was still having issues with this but your visual representation really helped :)
@asherorourke6199
@asherorourke6199 3 жыл бұрын
what a terrific explanation. Terrific, and thank you!
@trollflix
@trollflix 3 жыл бұрын
This guy is a genius. The explanation method is high level. You must be a teacher. 😍😋
@laurelineparis5407
@laurelineparis5407 Жыл бұрын
Nice, fun and accessible way to explain it :) Really enjoyed the analogical explanation Thanks for sharing 🙌
@krillansavillan
@krillansavillan Жыл бұрын
6:40 "Mathematical functions that are much more precise than my random squirting of liquids" bars
@shivampokhriyal2782
@shivampokhriyal2782 2 жыл бұрын
Awesome explanation. 👌👌
@zeikjt
@zeikjt 7 жыл бұрын
The water with food coloring mixing is a subtraction (so it'll converge on a dark muddy color), but the computer generated mixing is an addition (it'll converge on white). Aka, paint vs light.
@louisascott2483
@louisascott2483 Жыл бұрын
you are singlehandedly saving my degree
@hashansachintha546
@hashansachintha546 6 жыл бұрын
Finally I have understand it with this simple example. Big thanks.
@lukas.oppermann
@lukas.oppermann 3 жыл бұрын
Great explanation. Makes this concept really easy and straight forward to understand. 👍Thank you
@ryantan5974
@ryantan5974 3 жыл бұрын
Very well explained and elaboration are very clear.
@druidelf3
@druidelf3 6 жыл бұрын
Amazing video. I could not have found a better teacher. Thank you so much.
@SirCutRy
@SirCutRy 7 жыл бұрын
This is so simple yet so effective. Very interesting.
@brboLikus
@brboLikus 7 жыл бұрын
But what does 'n' do?
@Computerphile
@Computerphile 7 жыл бұрын
+Vjekoslav-Leonard Prčić watch the extra bits
@brboLikus
@brboLikus 7 жыл бұрын
Oh.. Thanks!
@coolguy-dw5jq
@coolguy-dw5jq 7 жыл бұрын
N is your message
@NateROCKS112
@NateROCKS112 4 жыл бұрын
@@coolguy-dw5jq no, n is your modulus. See the mathematical video for what it does
@srt-fw8nh
@srt-fw8nh 4 жыл бұрын
If water in either of those bowls overflows, n's job is to clean it up.
@Skaxarrat
@Skaxarrat Жыл бұрын
Stellar explanation.
@aabcdabc-n8t
@aabcdabc-n8t 7 жыл бұрын
FINALLY. Love your videos
@ramprasath219
@ramprasath219 6 жыл бұрын
Superb video!!! Great job 👍👏
@fahansheikh
@fahansheikh Жыл бұрын
thanks for the wonderful explanation 👍
@endsleighplace
@endsleighplace 2 жыл бұрын
Why is there a drain in the office floor? Now I'm just confused...
@sargondinkha8492
@sargondinkha8492 2 жыл бұрын
Fantastic content!
@theMosen
@theMosen 3 жыл бұрын
So how do group chats work?
@mercerkace2023
@mercerkace2023 2 жыл бұрын
Amazing explanation.
@pun15h3r.
@pun15h3r. 2 жыл бұрын
very nice video, plain and simple explanation ;D
@AnimatedHooman
@AnimatedHooman 7 жыл бұрын
Excellent explanation. Loved it
@ecaterinaignatov2026
@ecaterinaignatov2026 Жыл бұрын
"You would normally do this normally with mathematical functions that are much more precise than my random squirting of liquids" - same
@bgoggin88
@bgoggin88 7 жыл бұрын
Everyone loves this guy
Diffie Hellman -the Mathematics bit- Computerphile
7:05
Computerphile
Рет қаралды 519 М.
Diffie-Hellman Key Exchange: How to Share a Secret
9:09
Spanning Tree
Рет қаралды 169 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Key Exchange Problems - Computerphile
9:18
Computerphile
Рет қаралды 363 М.
Elliptic Curve Diffie Hellman
17:48
Robert Pierce
Рет қаралды 260 М.
It's Really Just That Bad
57:49
ThePrimeTime
Рет қаралды 212 М.
Public Key Cryptography: RSA Encryption Algorithm
16:31
Art of the Problem
Рет қаралды 943 М.
AES Explained (Advanced Encryption Standard) - Computerphile
14:14
Computerphile
Рет қаралды 1,3 МЛН
Elliptic Curves - Computerphile
8:42
Computerphile
Рет қаралды 565 М.
before you code, learn how computers work
7:05
Low Level
Рет қаралды 604 М.
Has Generative AI Already Peaked? - Computerphile
12:48
Computerphile
Рет қаралды 1 МЛН