Bitcoin Forum
November 11, 2024, 08:38:48 PM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Public Key Cryptography - Best explanation I've ever seen.  (Read 1317 times)
knight22 (OP)
Legendary
*
Offline Offline

Activity: 1372
Merit: 1000


--------------->¿?


View Profile
December 19, 2014, 05:07:33 AM
 #1

Short video


Public Key Cryptography: Diffie-Hellman Key Exchange

https://www.youtube.com/watch?v=3QnD2c4Xovk&feature=share


A must watch for non technical people.

damiano
Legendary
*
Offline Offline

Activity: 1246
Merit: 1000


103 days, 21 hours and 10 minutes.


View Profile
December 19, 2014, 05:51:21 AM
 #2

That's a very good explanation and its done very well. 
dimsky
Member
**
Offline Offline

Activity: 62
Merit: 10


View Profile
December 19, 2014, 07:00:31 AM
 #3

Thanks for sharing, bookmarked.
MadGamer
Legendary
*
Offline Offline

Activity: 1568
Merit: 1031


View Profile
December 19, 2014, 07:49:37 AM
 #4

Short video


Public Key Cryptography: Diffie-Hellman Key Exchange

https://www.youtube.com/watch?v=3QnD2c4Xovk&feature=share


A must watch for non technical people.

Best explanation I've ever seen to be honest ,I really liked the given examples , mostly the Colors example
Thanks for sharing mate  Grin
ulatec
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
December 19, 2014, 08:53:45 AM
 #5

Definitely one of the simplest explanations I have seen. Definitely something to show friends when they asking about cryptography but aren't as well versed in technology.
dserrano5
Legendary
*
Offline Offline

Activity: 1974
Merit: 1029



View Profile
December 19, 2014, 10:12:43 AM
 #6

How did they go from "16^54 mod 17" to "3^(24*54) mod 17"? Don't seem like the same numbers to me, and the transformation isn't further explained.
turvarya
Hero Member
*****
Offline Offline

Activity: 714
Merit: 500


View Profile
December 19, 2014, 10:20:51 AM
 #7

How did they go from "16^54 mod 17" to "3^(24*54) mod 17"? Don't seem like the same numbers to me, and the transformation isn't further explained.
A lot of people where wondering that Wink
I just typed it into Wolfram Alpha and it indeed gave me the right result, but I would also be interested into a explanation.

https://forum.bitcoin.com/
New censorship-free forum by Roger Ver. Try it out.
Elwar
Legendary
*
Offline Offline

Activity: 3598
Merit: 2386


Viva Ut Vivas


View Profile WWW
December 19, 2014, 11:58:15 AM
 #8

One step closer to understanding public key cryptography but it still has not clicked.

Does their answer translate into a Bitcoin private/public key?

First seastead company actually selling sea homes: Ocean Builders https://ocean.builders  Of course we accept bitcoin.
jonald_fyookball
Legendary
*
Offline Offline

Activity: 1302
Merit: 1008


Core dev leaves me neg feedback #abuse #political


View Profile
December 19, 2014, 01:32:15 PM
 #9

How did they go from "16^54 mod 17" to "3^(24*54) mod 17"? Don't seem like the same numbers to me, and the transformation isn't further explained.

When did they ever say 16^54?

Tell me at what time marker because I missed it.

at 4:26 in the video they said that
3^24 mod 17 = 16, which the result
of Bob's calculation.

One step closer to understanding public key cryptography but it still has not clicked.

Does their answer translate into a Bitcoin private/public key?

This video is different from Bitcoin...They are specifically using
the Diffie-Hellman Key Exchange to exchange private keys
over a public channel.

Bitcoin is more straightforward as far as public key/private key.
With Bitcoin, only you know your private key and don't have
to exchange it with anyone. 

But the concept of one way function still applies.  It is easy
to sign with your key and verify someone else signed correctly
but very hard to forge a signature or determine a private key
from a public key.






turvarya
Hero Member
*****
Offline Offline

Activity: 714
Merit: 500


View Profile
December 19, 2014, 01:40:22 PM
 #10

How did they go from "16^54 mod 17" to "3^(24*54) mod 17"? Don't seem like the same numbers to me, and the transformation isn't further explained.

When did they ever say 16^54?

Tell me at what time marker because I missed it.

at 4:26 in the video they said that
3^24 mod 17 = 16, which the result
of Bob's calculation.
4:35

https://forum.bitcoin.com/
New censorship-free forum by Roger Ver. Try it out.
dserrano5
Legendary
*
Offline Offline

Activity: 1974
Merit: 1029



View Profile
December 19, 2014, 01:51:25 PM
 #11

How did they go from "16^54 mod 17" to "3^(24*54) mod 17"? Don't seem like the same numbers to me, and the transformation isn't further explained.

When did they ever say 16^54?

Tell me at what time marker because I missed it.
4:35

Yup. To be more specific: "Alice takes Bob's public result and raises it to the power of her private number" (ie 16^54) "which gives 3 to the power of…"
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1862
Merit: 1011

Reverse engineer from time to time


View Profile
December 19, 2014, 01:51:50 PM
 #12

I understand the concept of public-key cryptography, but not the math behind it.

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
reRaise
Hero Member
*****
Offline Offline

Activity: 868
Merit: 1000


View Profile
December 19, 2014, 01:57:55 PM
 #13

This is far away from understandable for non technical people, but still good for those familiar with it
teukon
Legendary
*
Offline Offline

Activity: 1246
Merit: 1011



View Profile
December 19, 2014, 02:02:43 PM
Last edit: December 19, 2014, 03:16:06 PM by teukon
 #14

How did they go from "16^54 mod 17" to "3^(24*54) mod 17"? Don't seem like the same numbers to me, and the transformation isn't further explained.

From 4:26 in the video we know that 16 ≡ 324 mod 17.  Therefore
1654 ≡ (324)54 ≡ 324 * 54     (mod 17).

Of course, While Alice has received the value 16 from Bob, she doesn't know that 16 ≡ 324 mod 17 because she does not know Bob's secret number and cannot solve the discrete logarithm problem.  What Alice does know is that 16 ≡ 3[Bob's number] mod 17 and she can therefore calculate the shared secret:
3[Alice's number] * [Bob's number] ≡ 354 * [Bob's number] ≡ (3[Bob's number])54 ≡ 1654 ≡ 1     (mod 17).
Equally, Bob knows that 15 ≡ 3[Alice's number] mod 17 and he can therefore calculate the shared secret:
3[Alice's number] * [Bob's number] ≡ 3[Alice's number] * 24 ≡ (3[Alice's number])24 ≡ 1524 ≡ 1     (mod 17).
jonald_fyookball
Legendary
*
Offline Offline

Activity: 1302
Merit: 1008


Core dev leaves me neg feedback #abuse #political


View Profile
December 19, 2014, 02:08:50 PM
Last edit: December 19, 2014, 02:31:40 PM by jonald_fyookball
 #15

How did they go from "16^54 mod 17" to "3^(24*54) mod 17"? Don't seem like the same numbers to me, and the transformation isn't further explained.

When did they ever say 16^54?

Tell me at what time marker because I missed it.
4:35

Yup. To be more specific: "Alice takes Bob's public result and raises it to the power of her private number" (ie 16^54) "which gives 3 to the power of…"

Ah yes... Well 16^54 isnt the same number as 3^(24*54) , but it has the same modulus result after adding the "mod 17" part.

Mod function is basically the "leftovers" or "remainders" after doing division.
(Hopefully you can see how this is the same as wrapping a string around a clock).

I can't explain the exact mathematical properties why this all works,
(probably something to do with the fact that multiplication is commutative),
but the essence is that the same numbers are being combined (Alice's number and Bob's number using the same
modulus and primitive root), in a way that the remainder is the same.

I understand the concept of public-key cryptography, but not the math behind it.

Math depends on what flavor of cryptography.  This video deals with modulus.
Bitcoin uses ECDSA.  So if you want to know the math behind Bitcoin cryptography,
you need to study ECDSA specifically.  I think there's some good videos/articles
if you search the forum.


 

juju
Sr. Member
****
Offline Offline

Activity: 381
Merit: 250



View Profile
December 19, 2014, 07:16:14 PM
 #16

Short video


Public Key Cryptography: Diffie-Hellman Key Exchange

https://www.youtube.com/watch?v=3QnD2c4Xovk&feature=share


A must watch for non technical people.

Just an FYI, that video is from the Khan Academy Computer Science Information Science courses, which are free for anyone to take. I recommend anyone who is interested in Bitcoin/Cryptography/Encryption to take this course:

https://www.khanacademy.org/computing/computer-science/cryptography

It goes from the first few types of encryption - Caesar ciphers to modern ciphers

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!