Cryptography Fundamentals / Chapter 1 — Before Cryptography (lessons 1–5) / Lesson 1
What Cryptography Protects, and What It Doesn't
Time needed: about 9 min (estimate)
Reading settings
These settings are remembered on this device only.
You can try the opening of this lesson without an account.
What you'll build in this course
In this course you'll break each cipher with your own hands first, then choose the right way to use it. You'll break classical ciphers with frequency analysis and reused keys with XOR, and watch an image's outline survive ECB encryption. Once you know why something breaks, each argument to a library function starts to mean something. In the last chapter, you'll combine these parts into a file-encryption tool.
Map of all 30 lessons
Three things cryptography can protect
"Protecting something with cryptography" actually covers three different things. Confidentiality means nobody else can read the contents, integrity means nobody changed it on the way, and authenticity means it really came from who you think. Encryption on its own only gives you confidentiality. To notice tampering you need the MACs from Chapter 2, and to verify the sender you need the signatures from Chapter 4.
What is protected, and with what
Base64 is not encryption
Let's clear up one common mix-up first. Base64 looks unreadable, but it has no key. With no key, there's no way to tell the intended recipient apart from someone peeking along the way. When you see Base64 in a config file or a token, don't assume it's encrypted.
Tab indents. To leave the editor, press Esc, then Tab.
Create a free account to keep reading
With an account you can read the rest of this lesson, take the quiz, and read every free lesson in this course. Lessons you answer correctly are recorded as complete.
Report a problem with this lesson
Log in to send a report.