CrashCourse · @crashcourse
Cryptography: Crash Course Computer Science #33
Uploaded June 8, 2018 · Length 12:33
Summary
Learn about cryptography, from ancient ciphers like Caesar to modern AES, and how it secures digital communication.
- what is cryptography
- caesar cipher explained
- enigma machine history
- data encryption standard
- advanced encryption standard
- how encryption works
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:03
Hi, I’m Carrie Anne, and welcome to CrashCourse Computer Science!
- 0:05
Over the past two episodes, we’ve talked a lot about computer security.
- 0:09
But the fact is, there’s no such thing as a perfectly, 100% secure, computer system.
- 0:14
There will always be bugs and security experts know that.
- 0:17
So system architects employ a strategy called defence in depth, which uses many layers of
- 0:21
varying security mechanisms to frustrate attackers.
- 0:23
It’s a bit like how castles are designed – first you’ve got to dodge the archers,
- 0:27
then cross the moat, scale the walls, avoid the hot oil, get over the ramparts, and defeat
- 0:32
the guards before you get to the throne room, but in this case we’re talking about one
- 0:36
of the most common forms of computer security - Cryptography.
- 0:39
INTRO
- 0:49
The word cryptography comes from the roots ‘crypto’ and ‘graphy’, roughly translating
- 0:53
to “secret writing”.
- 0:54
In order to make information secret, you use a cipher – an algorithm that converts plain
- 0:58
text into ciphertext, which is gibberish unless you have a key that lets you undo the cipher.
- 1:03
The process of making text secret is called encryption, and the reverse process is called
- 1:08
decryption.
- 1:09
Ciphers have been used long before computers showed up.
- 1:11
Julius Caesar used what’s now called a Caesar cipher, to encrypt private correspondence.
- 1:15
He would shift the letters in a message forward by three places.
- 1:18
So, A became D, and the word "brutus" became this: "euxwxv".
- 1:21
To decipher the message, recipients had to know both the algorithm and the number to
- 1:25
shift by, which acted as the key.
- 1:27
The Caesar cipher is one example of a larger class of techniques called substitution ciphers.
- 1:32
These replace every letter in a message with something else according to a translation.
- 1:35
A big drawback of basic substitution ciphers is that letter frequencies are preserved.
- 1:40
For example, E is the most common letter in English, so if your cipher translates E to
- 1:44
an X, then X will show up the most frequently in the ciphertext.
- 1:48
A skilled cryptanalyst can work backwards from these kinds of statistics to figure out
- 1:51
the message.
- 1:52
Indeed, it was the breaking of a substitution cipher that led to the execution of Mary,
- 1:56
Queen of Scots, in 1587 for plotting to kill Queen Elizabeth.


