WEBVTT

1
00:00.000 --> 00:00.890 align:middle line:84%


2
00:00.890 --> 00:02.960 align:middle line:90%
One of the benefits
of using cryptography

3
00:02.960 --> 00:04.740 align:middle line:90%
is that we can keep
our data private,

4
00:04.740 --> 00:07.710 align:middle line:90%
whether it's data sitting on a
disk or sitting in the cloud,

5
00:07.710 --> 00:10.090 align:middle line:90%
or whether it's data that's
being sent over a network.

6
00:10.090 --> 00:12.160 align:middle line:90%
And we're going to
that with encryption.

7
00:12.160 --> 00:16.460 align:middle line:90%
And the basics for encryption
involve locking and unlocking

8
00:16.460 --> 00:17.240 align:middle line:84%
data.

9
00:17.240 --> 00:18.600 align:middle line:84%
And think of it like this.

10
00:18.600 --> 00:21.140 align:middle line:90%
Let's imagine that, I
had a chest over here,

11
00:21.140 --> 00:23.400 align:middle line:90%
and had a whole bunch of
really cool stuff inside.

12
00:23.400 --> 00:25.400 align:middle line:90%
And I could get a
padlock, and I could

13
00:25.400 --> 00:28.370 align:middle line:90%
lock that chest
with that padlock,

14
00:28.370 --> 00:30.110 align:middle line:90%
and then have it
shipped over to you.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

14
00:28.370 --> 00:30.110 align:middle line:90%
and then have it
shipped over to you.

15
00:30.110 --> 00:32.408 align:middle line:90%
Now if you want to
open that padlock,

16
00:32.408 --> 00:34.700 align:middle line:90%
I guess you could brute force
it open, but more likely,

17
00:34.700 --> 00:35.920 align:middle line:84%
you're going to use a key.

18
00:35.920 --> 00:39.000 align:middle line:90%
And if it's just like a simple
padlock, it's the same key.

19
00:39.000 --> 00:41.450 align:middle line:90%
So we might have a couple
of copies of that same key.

20
00:41.450 --> 00:44.750 align:middle line:90%
I have a key to lock it, and
use the same key to unlock it.

21
00:44.750 --> 00:48.680 align:middle line:90%
That's referred to as
symmetrical encryption.

22
00:48.680 --> 00:52.010 align:middle line:90%
Where we use the same exact key
to lock and unlock the data.

23
00:52.010 --> 00:54.860 align:middle line:90%
And protocols that would
use symmetrical encryption,

24
00:54.860 --> 00:59.390 align:middle line:90%
would include a AES, and we
use AES with several key links

25
00:59.390 --> 01:03.470 align:middle line:84%
like 128, 192, 256.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

25
00:59.390 --> 01:03.470 align:middle line:84%
like 128, 192, 256.

26
01:03.470 --> 01:05.780 align:middle line:90%
And some of the older
protocols that we used to use,

27
01:05.780 --> 01:08.270 align:middle line:90%
but they're not a security
more, including Triple DES,

28
01:08.270 --> 01:10.640 align:middle line:90%
are also algorithms,
encryption algorithms,

29
01:10.640 --> 01:13.550 align:middle line:90%
that employ symmetrical
encryption and decryption.

30
01:13.550 --> 01:16.650 align:middle line:90%
Basically, meaning using
the same key on both sides.

31
01:16.650 --> 01:19.400 align:middle line:90%
And another option that we
have for encryption methods,

32
01:19.400 --> 01:22.470 align:middle line:90%
is to use, what's referred
to as, asymmetrical.

33
01:22.470 --> 01:25.470 align:middle line:90%
And with asymmetrical
encryption, we have a key pair.

34
01:25.470 --> 01:29.120 align:middle line:90%
So I'm going to say we
have, key one, and then

35
01:29.120 --> 01:32.300 align:middle line:90%
in a different color,
will have key two.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

35
01:29.120 --> 01:32.300 align:middle line:90%
in a different color,
will have key two.

36
01:32.300 --> 01:34.500 align:middle line:90%
Now, mathematically,
these keys work together.

37
01:34.500 --> 01:36.380 align:middle line:90%
And with asymmetrical
keys, whatever

38
01:36.380 --> 01:39.950 align:middle line:90%
we encrypt with one key,
whether it's key one or two,

39
01:39.950 --> 01:42.330 align:middle line:90%
the data can be unlocked
with the other key.

40
01:42.330 --> 01:44.560 align:middle line:90%
So it's a asymmetrical,
they're not the same keys,

41
01:44.560 --> 01:46.310 align:middle line:90%
but they're mathematically
paired together

42
01:46.310 --> 01:47.390 align:middle line:84%
to work together.

43
01:47.390 --> 01:50.210 align:middle line:90%
And with key pairs, we're going
to have private keys, which

44
01:50.210 --> 01:53.180 align:middle line:90%
implies that if this is R1's
key pair, the private key,

45
01:53.180 --> 01:55.880 align:middle line:90%
he never shares with
anybody, and the public key,

46
01:55.880 --> 01:57.710 align:middle line:90%
he can go ahead and
share with the world.

47
01:57.710 --> 01:59.690 align:middle line:90%
He can share it with
R2, he share with R3,

48
01:59.690 --> 02:01.690 align:middle line:90%
he can share it with
anybody, and normally we're
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

48
01:59.690 --> 02:01.690 align:middle line:90%
he can share it with
anybody, and normally we're

49
02:01.690 --> 02:05.130 align:middle line:90%
going to share our public
key via digital certificate.

50
02:05.130 --> 02:07.700 align:middle line:90%
So if R1 wanted to
encrypt data, it

51
02:07.700 --> 02:10.360 align:middle line:90%
could use its private
key, which only it knows,

52
02:10.360 --> 02:11.310 align:middle line:84%
shipped the data.

53
02:11.310 --> 02:13.970 align:middle line:90%
And then R2, could
use R1's public key,

54
02:13.970 --> 02:17.270 align:middle line:90%
I'll label that, to go
ahead and decrypt that data.

55
02:17.270 --> 02:18.860 align:middle line:90%
Also public and
private key pairs

56
02:18.860 --> 02:20.810 align:middle line:90%
are used as part of
digital certificates

57
02:20.810 --> 02:22.160 align:middle line:84%
and authentication.

58
02:22.160 --> 02:25.130 align:middle line:90%
And the big negative about
asymmetrical encryption,

59
02:25.130 --> 02:27.920 align:middle line:90%
is that it does
use a lot more CPU,

60
02:27.920 --> 02:30.470 align:middle line:90%
so generally, we're going to
use asymmetrical encryption
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

60
02:27.920 --> 02:30.470 align:middle line:90%
so generally, we're going to
use asymmetrical encryption

61
02:30.470 --> 02:34.460 align:middle line:90%
algorithms, like RSA for the
authentication of a peer,

62
02:34.460 --> 02:36.440 align:middle line:90%
and verification of
who that peer is.

63
02:36.440 --> 02:38.210 align:middle line:90%
But for the bulk
data, we're going

64
02:38.210 --> 02:41.030 align:middle line:90%
to use symmetrical encryption
algorithms, like AES,

65
02:41.030 --> 02:42.920 align:middle line:90%
to encrypt the bulk
of the traffic that's

66
02:42.920 --> 02:45.778 align:middle line:90%
going to be sent back and
forth, between those two peers.

67
02:45.778 --> 02:47.570 align:middle line:90%
And one other question
before I leave this,

68
02:47.570 --> 02:49.820 align:middle line:90%
is that if we're using
asymmetrical encryption,

69
02:49.820 --> 02:52.872 align:middle line:90%
we've done some work beforehand,
To generate the key pairs,

70
02:52.872 --> 02:54.830 align:middle line:90%
and to get digital service,
so we can advertise

71
02:54.830 --> 02:56.220 align:middle line:84%
our public key, and so forth.

72
02:56.220 --> 02:59.030 align:middle line:90%
But if we're using just
symmetrical encryption,

73
02:59.030 --> 03:01.610 align:middle line:90%
and we're not using asymmetrical
at all, how in the world
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

73
02:59.030 --> 03:01.610 align:middle line:90%
and we're not using asymmetrical
at all, how in the world

74
03:01.610 --> 03:05.420 align:middle line:90%
does R1 and R2, if they're
going to be VPN peers,

75
03:05.420 --> 03:08.300 align:middle line:90%
how in the world do they
get the same key to lock

76
03:08.300 --> 03:09.450 align:middle line:84%
and unlock the data?

77
03:09.450 --> 03:11.300 align:middle line:90%
And one of the most
popular methods for them

78
03:11.300 --> 03:14.480 align:middle line:90%
to establish a shared key for
the encryption and decryption

79
03:14.480 --> 03:19.070 align:middle line:90%
of data, is use a technique
called Diffie-Hellman,

80
03:19.070 --> 03:22.610 align:middle line:90%
which are the last names of the
two gentlemen who created it.

81
03:22.610 --> 03:24.920 align:middle line:90%
So R1 and R2 could
negotiate and run

82
03:24.920 --> 03:26.870 align:middle line:84%
Diffie-Hellman between them.

83
03:26.870 --> 03:29.330 align:middle line:90%
Anybody could eavesdrop on
that entire conversation,

84
03:29.330 --> 03:31.790 align:middle line:90%
but at the end of the
Diffie-Hellman exchange,
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

84
03:29.330 --> 03:31.790 align:middle line:90%
but at the end of the
Diffie-Hellman exchange,

85
03:31.790 --> 03:35.570 align:middle line:90%
R1 would have keys
that match what R2 has.

86
03:35.570 --> 03:37.700 align:middle line:90%
And anybody who's
eavesdropping in the middle,

87
03:37.700 --> 03:40.610 align:middle line:90%
wouldn't be able to figure
out the final result in keys.

88
03:40.610 --> 03:43.550 align:middle line:90%
So just be aware that we have
two peers with cryptography

89
03:43.550 --> 03:45.200 align:middle line:90%
that are using
shared secret keys

90
03:45.200 --> 03:47.270 align:middle line:90%
that they establish
together, is primarily

91
03:47.270 --> 03:50.930 align:middle line:90%
Diffie-Hellman that's used, to
dynamically generate those keys

92
03:50.930 --> 03:52.730 align:middle line:84%
that both those peers can use.

93
03:52.730 --> 03:54.230 align:middle line:90%
So in this video,
we've taken a look

94
03:54.230 --> 03:57.410 align:middle line:90%
at the concept of encryption
to protect the data, to give us

95
03:57.410 --> 03:58.733 align:middle line:84%
privacy regarding our data.

96
03:58.733 --> 04:00.650 align:middle line:90%
So that only the
individuals, the parties that
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

96
03:58.733 --> 04:00.650 align:middle line:90%
So that only the
individuals, the parties that

97
04:00.650 --> 04:02.300 align:middle line:90%
have the right
keys involved, can

98
04:02.300 --> 04:04.945 align:middle line:90%
correctly unlock, and actually
make sense of the data.

99
04:04.945 --> 04:06.570 align:middle line:90%
So thanks for joining
me in this video.

100
04:06.570 --> 04:07.860 align:middle line:84%
I'll see you in the next one.

101
04:07.860 --> 04:10.490 align:middle line:90%
Meanwhile, I hope this has
been informative for you,

102
04:10.490 --> 04:13.750 align:middle line:90%
and I'd like to thank
you for viewing.
