CrashCourse · @crashcourse

Cryptography: Crash Course Computer Science #33

Uploaded June 8, 2018 · Length 12:33

Cryptography: Crash Course Computer Science #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.

  1. 0:03

    Hi, I’m Carrie Anne, and welcome to CrashCourse Computer Science!

  2. 0:05

    Over the past two episodes, we’ve talked a lot about computer security.

  3. 0:09

    But the fact is, there’s no such thing as a perfectly, 100% secure, computer system.

  4. 0:14

    There will always be bugs and security experts know that.

  5. 0:17

    So system architects employ a strategy called defence in depth, which uses many layers of

  6. 0:21

    varying security mechanisms to frustrate attackers.

  7. 0:23

    It’s a bit like how castles are designed – first you’ve got to dodge the archers,

  8. 0:27

    then cross the moat, scale the walls, avoid the hot oil, get over the ramparts, and defeat

  9. 0:32

    the guards before you get to the throne room, but in this case we’re talking about one

  10. 0:36

    of the most common forms of computer security - Cryptography.

  11. 0:39

    INTRO

  12. 0:49

    The word cryptography comes from the roots ‘crypto’ and ‘graphy’, roughly translating

  13. 0:53

    to “secret writing”.

  14. 0:54

    In order to make information secret, you use a cipher – an algorithm that converts plain

  15. 0:58

    text into ciphertext, which is gibberish unless you have a key that lets you undo the cipher.

  16. 1:03

    The process of making text secret is called encryption, and the reverse process is called

  17. 1:08

    decryption.

  18. 1:09

    Ciphers have been used long before computers showed up.

  19. 1:11

    Julius Caesar used what’s now called a Caesar cipher, to encrypt private correspondence.

  20. 1:15

    He would shift the letters in a message forward by three places.

  21. 1:18

    So, A became D, and the word "brutus" became this: "euxwxv".

  22. 1:21

    To decipher the message, recipients had to know both the algorithm and the number to

  23. 1:25

    shift by, which acted as the key.

  24. 1:27

    The Caesar cipher is one example of a larger class of techniques called substitution ciphers.

  25. 1:32

    These replace every letter in a message with something else according to a translation.

  26. 1:35

    A big drawback of basic substitution ciphers is that letter frequencies are preserved.

  27. 1:40

    For example, E is the most common letter in English, so if your cipher translates E to

  28. 1:44

    an X, then X will show up the most frequently in the ciphertext.

  29. 1:48

    A skilled cryptanalyst can work backwards from these kinds of statistics to figure out

  30. 1:51

    the message.

  31. 1:52

    Indeed, it was the breaking of a substitution cipher that led to the execution of Mary,

  32. 1:56

    Queen of Scots, in 1587 for plotting to kill Queen Elizabeth.