What is encryption?

Cybersecurity Foundations (Grades 6–8) · lesson 23 of 48 · 10 min

Why Encryption Is the Foundation of Digital Security

Every time you log into a website, send a message, or make a payment online, encryption is protecting you. Without it, anyone who could intercept your internet traffic could read your passwords, see your messages, and steal your payment details. Encryption is not a feature — it is the foundation of all digital privacy and security.

Encryption has existed for thousands of years — Julius Caesar used a simple letter-shift cipher to protect military messages. Modern encryption uses mathematics so complex that breaking it would take longer than the age of the universe, even with the most powerful computers on Earth.

By the end of this lesson you will be able to define encryption and explain how it works, distinguish between encryption and hashing, explain encryption at rest vs. in transit, name the most important encryption algorithms, and explain why encryption matters for everyday security.

Encryption everywhere

Your phone uses AES-256 to encrypt all stored data. WhatsApp and Signal use end-to-end encryption so only you and the recipient can read messages. HTTPS uses TLS (which uses AES) to encrypt web traffic. Your bank uses encryption for every transaction. Encryption is not just for spies and hackers — it protects every digital interaction you have.

Encryption Explained

Encryption is the process of converting readable data (plaintext) into an unreadable scrambled format (ciphertext) using a mathematical algorithm and a key. Only someone with the correct key can decrypt it back to plaintext.

Think of encryption like a combination lock on a diary. The diary’s contents are the plaintext. Locking it creates ciphertext. The combination is the key.

Why encryption matters: Without encryption, any data transmitted over a network can be read by anyone who intercepts it — your ISP, a hacker on public Wi-Fi, or a government. Encryption ensures only the intended recipient can read the data.

Encryption at rest vs. in transit:

Encryption at rest — data stored on a device or server is encrypted. If the device is stolen, the data is unreadable without the key.

Encryption in transit — data is encrypted while being transmitted over a network. HTTPS encrypts web traffic in transit.

How Encryption Works

Algorithm — the mathematical process used to encrypt and decrypt. Common algorithms: AES (Advanced Encryption Standard), RSA, ChaCha20.

Key — a string of bits used by the algorithm. Longer keys = stronger encryption. AES-256 uses a 256-bit key — 2^256 possible combinations.

Cipher — the encrypted output. Without the key, it looks like random noise.

Hashing — a related but different concept. Hashing converts data to a fixed-length string (hash) that cannot be reversed. Used for passwords — the site stores your password’s hash, not the password itself. SHA-256 and bcrypt are common hashing algorithms.

Hashing vs. encryption: Encryption is reversible (with the key). Hashing is one-way — you cannot get the original data back from a hash.

Key Terms

Real-World Case Studies

Case 1: The iCloud Encryption Debate (2016)

After the San Bernardino terrorist attack, the FBI asked Apple to create a backdoor to bypass iPhone encryption. Apple refused, arguing that creating a backdoor would weaken encryption for all users — not just criminals. The case was eventually dropped when the FBI found another way in. This case highlighted a fundamental tension: strong encryption protects everyone, including criminals. Weakening it to catch criminals also weakens it for everyone else.

Case 2: Unencrypted laptops and data breaches

In 2006, a US Department of Veterans Affairs laptop was stolen from an employee’s home. It contained unencrypted personal data of 26.5 million veterans and active-duty military personnel. The breach cost the VA over $20 million in notifications and credit monitoring. If the laptop had used full-disk encryption, the stolen data would have been unreadable. This case led to mandatory encryption requirements for government laptops. The lesson: encryption at rest protects data even when physical security fails.

Activity — Encryption Concepts Matching

Encryption Terms and Definitions

Knowledge Check

What is Encryption?

Encryption converts plaintext into:

  • A shorter version
  • Ciphertext — unreadable without the key
  • A hash
  • A compressed file
  • Answer: Ciphertext — unreadable without the key

Encryption scrambles data into ciphertext. Only someone with the correct decryption key can convert it back to readable plaintext. Encryption in transit protects data:

  • Stored on your hard drive
  • While being sent over a network
  • In your email inbox
  • In cloud storage
  • Answer: While being sent over a network

Encryption in transit (like HTTPS/TLS) protects data as it travels across networks — preventing interception by attackers. Hashing differs from encryption because:

  • Hashing is faster
  • Hashing is one-way — you cannot reverse it to get the original data
  • Hashing uses longer keys
  • Hashing is less secure
  • Answer: Hashing is one-way — you cannot reverse it to get the original data

Encryption is reversible with the key. Hashing is one-way — it is used for passwords because even if the hash is stolen, the password cannot be recovered. A longer encryption key means:

  • Slower performance only
  • Stronger encryption — more possible combinations
  • Weaker encryption
  • Smaller file size
  • Answer: Stronger encryption — more possible combinations

Key length determines security. AES-256 has 2^256 possible keys — brute-forcing it would take longer than the age of the universe.

Websites store your actual password in their database.

Answer: False
Secure sites store a hash of your password, not the password itself. When you log in, they hash your input and compare it to the stored hash.

A stolen laptop with full-disk encryption enabled:

  • Can be accessed by anyone
  • Contains unreadable data without the decryption key
  • Is permanently destroyed
  • Automatically wipes itself
  • Answer: Contains unreadable data without the decryption key

Full-disk encryption means all data on the drive is encrypted. Without the key (usually your login password), the data is unreadable even if the drive is removed.


Previous lesson: Basic defense strategies
Back to Cybersecurity Foundations (Grades 6–8)
Next lesson: Symmetric vs. asymmetric encryption