1
00:00:00,090 --> 00:00:01,830
In this lesson, we're going to discuss some

2
00:00:01,830 --> 00:00:03,300
of the different symmetric algorithms

3
00:00:03,300 --> 00:00:06,060
that you may come across when working out in the field.

4
00:00:06,060 --> 00:00:07,770
Now, a symmetric algorithm is a method

5
00:00:07,770 --> 00:00:09,390
of encryption where the same key is used

6
00:00:09,390 --> 00:00:12,330
for both encryption and decryption of your data.

7
00:00:12,330 --> 00:00:13,470
Now we're going to be covering a few

8
00:00:13,470 --> 00:00:15,240
of the most commonly used symmetric algorithms,

9
00:00:15,240 --> 00:00:20,010
including DES, 3DES, IDEA, AES, Blowfish, Twofish,

10
00:00:20,010 --> 00:00:24,570
and then Rivest Ciphers, including RC4, RC5, and RC6.

11
00:00:24,570 --> 00:00:26,370
Now first, we have DES.

12
00:00:26,370 --> 00:00:28,560
Now DES, or the Data Encryption Standard,

13
00:00:28,560 --> 00:00:30,240
is written out as DES.

14
00:00:30,240 --> 00:00:32,070
And it uses a 64-bit key,

15
00:00:32,070 --> 00:00:34,590
with eight bits of that being used for parity.

16
00:00:34,590 --> 00:00:37,140
Therefore, DES really only has an effective key length

17
00:00:37,140 --> 00:00:40,200
of 56 bits, which is, as you probably guessed by now,

18
00:00:40,200 --> 00:00:42,390
not very powerful and not very secure

19
00:00:42,390 --> 00:00:45,090
against the challenge of modern computing power.

20
00:00:45,090 --> 00:00:48,270
Now, DES was heavily used all the way back in the 1970s,

21
00:00:48,270 --> 00:00:51,120
and it was used all the way up until the early 2000s.

22
00:00:51,120 --> 00:00:53,430
With DES, each message is going to be broken up

23
00:00:53,430 --> 00:00:54,840
into 64-bit blocks,

24
00:00:54,840 --> 00:00:57,690
and then pushed through 16 rounds of transposition

25
00:00:57,690 --> 00:01:00,930
and substitution to create the final cipher text.

26
00:01:00,930 --> 00:01:03,300
Now, because of DES's weakness and its key size,

27
00:01:03,300 --> 00:01:05,459
a modified version of it known as Triple DES,

28
00:01:05,459 --> 00:01:08,910
which is written as 3DES was also created.

29
00:01:08,910 --> 00:01:09,990
Now in this version,

30
00:01:09,990 --> 00:01:12,960
we're actually going to use three different 56-bit keys.

31
00:01:12,960 --> 00:01:15,300
The input data is going to be subjected to encryption

32
00:01:15,300 --> 00:01:17,940
through the DES algorithm using the first key.

33
00:01:17,940 --> 00:01:20,340
Then the resulting cipher text will attempt

34
00:01:20,340 --> 00:01:22,710
to be decrypted using that same algorithm,

35
00:01:22,710 --> 00:01:24,360
but using the second key.

36
00:01:24,360 --> 00:01:26,700
Now, because this key doesn't actually decrypt the data,

37
00:01:26,700 --> 00:01:28,440
it just scrambles it up even further,

38
00:01:28,440 --> 00:01:30,030
and then we'll put it through the DES algorithm

39
00:01:30,030 --> 00:01:32,340
one more time using the third key

40
00:01:32,340 --> 00:01:34,020
and the encryption function.

41
00:01:34,020 --> 00:01:36,060
So we're encrypting, decrypting,

42
00:01:36,060 --> 00:01:38,370
and encrypting using three different keys,

43
00:01:38,370 --> 00:01:40,530
which really effectively creates us an algorithm

44
00:01:40,530 --> 00:01:42,930
that has 112-bit key that we're using here

45
00:01:42,930 --> 00:01:45,210
as we're going through the DES process three times,

46
00:01:45,210 --> 00:01:48,270
encrypting, decrypting, and encrypting again.

47
00:01:48,270 --> 00:01:50,430
Now, second, we have IDEA.

48
00:01:50,430 --> 00:01:53,100
Now IDEA is spelled I-D-E-A, and it stands

49
00:01:53,100 --> 00:01:55,560
for the International Data Encryption Algorithm.

50
00:01:55,560 --> 00:01:57,840
Now IDEA is another symmetric block cipher,

51
00:01:57,840 --> 00:02:00,900
and this again uses 64-bit blocks as its input,

52
00:02:00,900 --> 00:02:03,060
and then uses that to encrypt the data.

53
00:02:03,060 --> 00:02:05,580
The key size for IDEA is 128 bits,

54
00:02:05,580 --> 00:02:07,440
which makes it harder to break than DES,

55
00:02:07,440 --> 00:02:10,289
but it's not as widely utilized as the more common one

56
00:02:10,289 --> 00:02:12,300
that we're going to talk about known as AES,

57
00:02:12,300 --> 00:02:14,460
or the Advanced Encryption Standard.

58
00:02:14,460 --> 00:02:17,340
Now IDEA is commonly known only because it was really used

59
00:02:17,340 --> 00:02:21,570
a lot inside the PGP, or Pretty Good Privacy suite of tools.

60
00:02:21,570 --> 00:02:24,480
Now, ultimately, DES and 3DES that we talked about earlier

61
00:02:24,480 --> 00:02:26,400
simply were found to not be strong enough,

62
00:02:26,400 --> 00:02:27,930
and so a big contest was held

63
00:02:27,930 --> 00:02:30,360
by the National Institute of Standards and Technologies

64
00:02:30,360 --> 00:02:31,800
to create a replacement.

65
00:02:31,800 --> 00:02:34,380
IDEA was one of the entrants into this contest,

66
00:02:34,380 --> 00:02:36,570
but ultimately, they didn't win.

67
00:02:36,570 --> 00:02:38,940
The winner actually brings us to our third type,

68
00:02:38,940 --> 00:02:42,240
which is called AES, or the Advanced Encryption Standard.

69
00:02:42,240 --> 00:02:43,800
Now, the Advanced Encryption Standard

70
00:02:43,800 --> 00:02:46,590
was actually chosen as a replacement for DES and 3DES

71
00:02:46,590 --> 00:02:47,730
by the US government

72
00:02:47,730 --> 00:02:50,520
through the National Institute of Standards and Technology.

73
00:02:50,520 --> 00:02:54,180
Now, AES can be used with 128-bit key, 192-bit key,

74
00:02:54,180 --> 00:02:56,460
or a 256-bit key.

75
00:02:56,460 --> 00:02:59,100
AES is also known as the Rijndael algorithm

76
00:02:59,100 --> 00:03:01,440
or Rijndael Cipher because that was the name

77
00:03:01,440 --> 00:03:03,660
of the creator who made AES.

78
00:03:03,660 --> 00:03:06,300
But most people will simply call it AES

79
00:03:06,300 --> 00:03:08,130
because it's a lot easier to say.

80
00:03:08,130 --> 00:03:10,380
You're going to find that AES is widely used,

81
00:03:10,380 --> 00:03:12,930
and has become the defacto standard in encryption

82
00:03:12,930 --> 00:03:14,910
for symmetric key cryptography.

83
00:03:14,910 --> 00:03:16,500
In fact, it's the encryption standard

84
00:03:16,500 --> 00:03:18,240
that's being used by the federal government

85
00:03:18,240 --> 00:03:19,740
for any encryption of sensitive,

86
00:03:19,740 --> 00:03:21,960
but unclassified information.

87
00:03:21,960 --> 00:03:24,420
The fourth type we have is known as Blowfish.

88
00:03:24,420 --> 00:03:27,450
Now, Blowfish is a block cipher that uses a 32-bit

89
00:03:27,450 --> 00:03:31,590
to 448-bit encryption key and can encrypt 64 bits of data

90
00:03:31,590 --> 00:03:34,680
at a time when it's going through and doing those blocks.

91
00:03:34,680 --> 00:03:37,110
Originally, this was developed as a replacement for DES,

92
00:03:37,110 --> 00:03:39,330
but it wasn't widely utilized.

93
00:03:39,330 --> 00:03:41,250
Now the fifth one we have is another variant,

94
00:03:41,250 --> 00:03:43,110
which is known as Twofish.

95
00:03:43,110 --> 00:03:44,880
Twofish was developed to be able to provide us

96
00:03:44,880 --> 00:03:47,790
with 128-bit blocks in the encryption algorithm,

97
00:03:47,790 --> 00:03:52,790
and uses 128-bit, 192-bit, or 256-bit encryption key.

98
00:03:52,800 --> 00:03:55,350
Both Blowfish and Twofish were never patented,

99
00:03:55,350 --> 00:03:57,300
and they were released as open source products

100
00:03:57,300 --> 00:03:58,770
that people could use.

101
00:03:58,770 --> 00:04:00,630
Sixth, and finally, we have another set

102
00:04:00,630 --> 00:04:02,640
of symmetric algorithms that we need to look at

103
00:04:02,640 --> 00:04:04,890
known as the RC Cipher Suite.

104
00:04:04,890 --> 00:04:07,590
Now the RC Cipher Suite was created by Ron Rivest,

105
00:04:07,590 --> 00:04:09,750
a cryptographer who's created six algorithms

106
00:04:09,750 --> 00:04:13,230
under the name RC, which stands for Rivest Cipher.

107
00:04:13,230 --> 00:04:14,940
RC1 was never published.

108
00:04:14,940 --> 00:04:17,790
RC2 was considered weak and was skipped over.

109
00:04:17,790 --> 00:04:20,130
RC3 was actually cracked before it was even released

110
00:04:20,130 --> 00:04:20,970
to the public.

111
00:04:20,970 --> 00:04:24,030
But with RC4, RC5, and RC6,

112
00:04:24,030 --> 00:04:24,930
these were all released,

113
00:04:24,930 --> 00:04:27,570
and they're commonly used in our networks today.

114
00:04:27,570 --> 00:04:30,360
RC4 is considered to be a stream cipher,

115
00:04:30,360 --> 00:04:32,820
and it uses a variable key size from 40 bits,

116
00:04:32,820 --> 00:04:35,550
all the way up to 2,048 bits.

117
00:04:35,550 --> 00:04:39,330
RC4 is going to be used in both Secure Socket Layer, SSL,

118
00:04:39,330 --> 00:04:42,270
as well as the Wired Equivalent Privacy, or WEP,

119
00:04:42,270 --> 00:04:44,010
that's used heavily on the internet

120
00:04:44,010 --> 00:04:46,080
and on our wireless networks.

121
00:04:46,080 --> 00:04:48,990
Now, RC5 is a block cipher that uses key sizes

122
00:04:48,990 --> 00:04:51,000
up to 2,048 bits.

123
00:04:51,000 --> 00:04:52,590
And finally, we have RC6,

124
00:04:52,590 --> 00:04:54,480
which is based on the RC5 cipher,

125
00:04:54,480 --> 00:04:56,730
but is a stronger and more advanced version of it.

126
00:04:56,730 --> 00:04:58,590
And it was originally entered into the contest

127
00:04:58,590 --> 00:05:00,780
as a replacement for DES, but ultimately,

128
00:05:00,780 --> 00:05:04,590
the Rijndael Cipher, known as AES, was chosen as the winner.

129
00:05:04,590 --> 00:05:06,120
So remember, if you're being asked

130
00:05:06,120 --> 00:05:07,650
about any encryption algorithms,

131
00:05:07,650 --> 00:05:08,880
you should be able to identify it

132
00:05:08,880 --> 00:05:11,970
as a specific algorithm being symmetric or asymmetric,

133
00:05:11,970 --> 00:05:14,430
and whether it is a block or stream cipher.

134
00:05:14,430 --> 00:05:15,870
You do not need to memorize all

135
00:05:15,870 --> 00:05:18,090
of the different block sizes or key sizes.

136
00:05:18,090 --> 00:05:20,100
I just brought that up as a way for you to understand

137
00:05:20,100 --> 00:05:22,980
which ones are more or less secure than others.

138
00:05:22,980 --> 00:05:24,270
Now, as we went through this lesson,

139
00:05:24,270 --> 00:05:26,970
we talked about DES, 3DES, IDEA,

140
00:05:26,970 --> 00:05:31,680
AES, Blowfish, Twofish, RC4, RC5, and RC6.

141
00:05:31,680 --> 00:05:34,590
All these are considered to be symmetric algorithms.

142
00:05:34,590 --> 00:05:36,060
Now, most of these are also considered

143
00:05:36,060 --> 00:05:38,580
to be block ciphers except RC4.

144
00:05:38,580 --> 00:05:41,130
RC4 is the only symmetric cipher we discussed

145
00:05:41,130 --> 00:05:43,200
that is considered to be a stream cipher,

146
00:05:43,200 --> 00:05:44,700
so keep this in mind as you're working

147
00:05:44,700 --> 00:05:47,010
with the encryption out in the real world too.

148
00:05:47,010 --> 00:05:49,710
Finally, when it comes to symmetric encryption ciphers,

149
00:05:49,710 --> 00:05:51,120
the one that is most commonly used

150
00:05:51,120 --> 00:05:53,280
is going to be the Advanced Encryption Standard,

151
00:05:53,280 --> 00:05:54,900
and it's also considered to be the strongest

152
00:05:54,900 --> 00:05:57,743
of the symmetric algorithms that we covered in this lesson.

