---
title: "Encryption — AP Cybersecurity Definition & Exam Guide"
description: "Encryption is the process of hiding information by combining plaintext with a key to produce ciphertext, the core of protecting stored data in AP Cybersecurity Unit 5."
canonical: "https://fiveable.me/ap-cybersecurity/key-terms/encryption"
type: "key-term"
subject: "AP Cybersecurity"
unit: "Unit 5"
---

# Encryption — AP Cybersecurity Definition & Exam Guide

## Definition

In AP Cybersecurity, encryption is the process of hiding information by running plaintext through a cryptographic algorithm with a key to produce ciphertext, which can only be returned to readable form through decryption with the right key.

## What It Is

Encryption is how you take readable information and scramble it so no one can read it without a key. The readable version is called **[plaintext](/ap-cybersecurity/key-terms/plaintext "fv-autolink")**, the scrambled output is **ciphertext**, and the secret value that drives the math is the **key** (EK 5.3.A.1, EK 5.3.A.2). A [cryptographic algorithm](/ap-cybersecurity/unit-5/asymmetric-cryptography/study-guide/VwtcdE1OgUXoQu0fiDG2 "fv-autolink") defines exactly how to combine the plaintext with the key to produce ciphertext, and **decryption** is the reverse, turning ciphertext back into plaintext using the correct key.

The whole point of cryptography is to hide information, and encryption is the doing-part of that goal. On computers, [encryption algorithms](/ap-cybersecurity/unit-5/protecting-applications-and-data-managerial-controls-and-access-controls/study-guide/tZFME9LjYUHiIc9fHQE2 "fv-autolink") work on binary data, and the most common one you'll see is **AES** (Advanced Encryption Standard). AES is a symmetric key block cipher that encrypts data in 128-bit (16-byte) blocks, and it can use keys of different lengths (EK 5.3.B.1, EK 5.3.B.2). Longer keys are harder to crack but slower to run. "Symmetric" means the same key both encrypts and decrypts, so anyone holding that one key can do both jobs.

## Why It Matters

Encryption lives in **[Unit 5](/ap-cybersecurity/unit-5 "fv-autolink"): Securing Applications and Data**, specifically Topic 5.3 (Protecting Stored Data with Cryptography). It anchors two learning objectives: **[AP Cybersecurity](/ap-cybersecurity "fv-autolink") 5.3.A** (explain how encryption protects files) and **AP Cybersecurity 5.3.B** (apply symmetric encryption algorithms to encrypt and decrypt data). This is where the exam expects you to move from "I've heard of encryption" to actually labeling the parts of the process and applying AES. It's also one of the clearest examples of the confidentiality principle in action, since the entire job of encryption is keeping data unreadable to anyone without the key.

## Connections

### Ciphertext and Plaintext (Unit 5)

These are the input and output of encryption. Plaintext goes in, you mix it with a key, and [ciphertext](/ap-cybersecurity/key-terms/ciphertext "fv-autolink") comes out. Decryption just runs that pipeline backward.

### [AES (Unit 5)](/ap-cybersecurity/key-terms/aes)

AES is the specific symmetric algorithm encryption usually means in practice. It encrypts in 128-bit blocks and secures everything from Wi-Fi to disk files, so when the exam asks you to apply encryption, AES is the tool.

### Cryptographic Hash Functions (Unit 5)

Hashing and encryption both scramble data, but encryption is reversible with a key and hashing is one-way. If a question asks for getting the original data back, that's encryption, not a [hash](/ap-cybersecurity/key-terms/hash "fv-autolink") like SHA-256.

### [Decryption (Unit 5)](/ap-cybersecurity/key-terms/decryption)

[Decryption](/ap-cybersecurity/key-terms/decryption "fv-autolink") is the mirror image of encryption. Same algorithm, same key in the symmetric case, run in reverse to recover the plaintext.

## On the AP Exam

Multiple-choice questions love giving you a scenario and asking you to name the process. Expect stems like an analyst transforming readable database contents into unreadable code with a secret key, or combining plaintext with a key to produce ciphertext. The answer is "encryption." Watch the direction carefully: if the scenario starts with random-looking characters like 'K7xQ2mP9nL4' and uses a key to recover 'Hello World', that's **decryption**, not encryption. You should be able to identify plaintext, ciphertext, and key in any scenario, explain how encryption protects stored files, and recognize AES as the standard symmetric algorithm with its 128-bit block size and variable key length.

## encryption vs decryption

Encryption and decryption use the same algorithm and (for symmetric encryption) the same key, but they run in opposite directions. Encryption turns plaintext into ciphertext to hide it. Decryption turns ciphertext back into plaintext to read it. On a question, check whether you're starting with readable text (encryption) or scrambled text (decryption).

## Key Takeaways

- Encryption is the process of hiding information by combining plaintext with a key to produce ciphertext.
- Decryption is the exact reverse, using the correct key to turn ciphertext back into the original plaintext.
- AES is the most common symmetric encryption algorithm, working on 128-bit (16-byte) blocks of binary data.
- In symmetric encryption, the same key both encrypts and decrypts, and longer keys are more secure but slower.
- On the exam, the giveaway is direction: readable text going in means encryption, scrambled text coming back means decryption.

## FAQs

### What is encryption in AP Cybersecurity?

Encryption is the process of hiding information by running plaintext through a cryptographic algorithm with a key to produce ciphertext. It's covered in Unit 5, Topic 5.3, and supports learning objectives 5.3.A and 5.3.B.

### Is encryption the same as decryption?

No. Encryption scrambles readable plaintext into ciphertext, and decryption reverses that to recover the plaintext. They use the same algorithm and, in symmetric encryption like AES, the same key, just run in opposite directions.

### How is encryption different from a hash function?

Encryption is reversible, so with the right key you can get the original data back. A cryptographic hash function like SHA-256 is one-way and produces a fixed-size output you can't reverse. If the goal is recovering the original data, it's encryption.

### What's the difference between plaintext and ciphertext?

Plaintext is the readable information you feed into encryption, and ciphertext is the scrambled output that comes out. Encryption goes plaintext-to-ciphertext, and decryption goes ciphertext-to-plaintext.

### Why is AES important for the encryption questions on the exam?

AES is the most common symmetric encryption algorithm and the one the CED highlights. It's a block cipher that encrypts 128-bit blocks with variable key lengths, and it secures Wi-Fi, browsing, and disk files, so it's the go-to example when applying symmetric encryption.

## Related Study Guides

- [5.3 Protecting Stored Data with Cryptography](/ap-cybersecurity/unit-5/protecting-stored-data-with-cryptography/study-guide/pVI6SOT7HBVhSMIqKTXG)

## Structured Data

```json
{"@context":"https://schema.org","@graph":[{"@type":"LearningResource","@id":"https://fiveable.me/ap-cybersecurity/key-terms/encryption#resource","name":"Encryption — AP Cybersecurity Definition & Exam Guide","url":"https://fiveable.me/ap-cybersecurity/key-terms/encryption","learningResourceType":"Concept explainer","educationalLevel":"AP® / High School","about":{"@id":"https://fiveable.me/ap-cybersecurity/key-terms/encryption#term"},"audience":{"@type":"EducationalAudience","educationalRole":"student"},"dateModified":"2026-06-15T18:59:31.214Z","isPartOf":{"@type":"Collection","name":"AP Cybersecurity Key Terms","url":"https://fiveable.me/ap-cybersecurity/key-terms"},"publisher":{"@type":"Organization","name":"Fiveable","url":"https://fiveable.me"}},{"@type":"DefinedTerm","@id":"https://fiveable.me/ap-cybersecurity/key-terms/encryption#term","name":"encryption","description":"In AP Cybersecurity, encryption is the process of hiding information by running plaintext through a cryptographic algorithm with a key to produce ciphertext, which can only be returned to readable form through decryption with the right key.","url":"https://fiveable.me/ap-cybersecurity/key-terms/encryption","inDefinedTermSet":{"@type":"DefinedTermSet","name":"AP Cybersecurity Key Terms","url":"https://fiveable.me/ap-cybersecurity/key-terms"},"educationalAlignment":[{"@type":"AlignmentObject","alignmentType":"educationalSubject","educationalFramework":"AP® Course and Exam Description","targetName":"AP Cybersecurity Unit 5, Topic 5.3, LO 5.3.A"},{"@type":"AlignmentObject","alignmentType":"educationalSubject","educationalFramework":"AP® Course and Exam Description","targetName":"AP Cybersecurity Unit 5, Topic 5.3, LO 5.3.B"}]},{"@type":"FAQPage","mainEntity":[{"@type":"Question","name":"What is encryption in AP Cybersecurity?","acceptedAnswer":{"@type":"Answer","text":"Encryption is the process of hiding information by running plaintext through a cryptographic algorithm with a key to produce ciphertext. It's covered in Unit 5, Topic 5.3, and supports learning objectives 5.3.A and 5.3.B."}},{"@type":"Question","name":"Is encryption the same as decryption?","acceptedAnswer":{"@type":"Answer","text":"No. Encryption scrambles readable plaintext into ciphertext, and decryption reverses that to recover the plaintext. They use the same algorithm and, in symmetric encryption like AES, the same key, just run in opposite directions."}},{"@type":"Question","name":"How is encryption different from a hash function?","acceptedAnswer":{"@type":"Answer","text":"Encryption is reversible, so with the right key you can get the original data back. A cryptographic hash function like SHA-256 is one-way and produces a fixed-size output you can't reverse. If the goal is recovering the original data, it's encryption."}},{"@type":"Question","name":"What's the difference between plaintext and ciphertext?","acceptedAnswer":{"@type":"Answer","text":"Plaintext is the readable information you feed into encryption, and ciphertext is the scrambled output that comes out. Encryption goes plaintext-to-ciphertext, and decryption goes ciphertext-to-plaintext."}},{"@type":"Question","name":"Why is AES important for the encryption questions on the exam?","acceptedAnswer":{"@type":"Answer","text":"AES is the most common symmetric encryption algorithm and the one the CED highlights. It's a block cipher that encrypts 128-bit blocks with variable key lengths, and it secures Wi-Fi, browsing, and disk files, so it's the go-to example when applying symmetric encryption."}}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"AP Cybersecurity","item":"https://fiveable.me/ap-cybersecurity"},{"@type":"ListItem","position":2,"name":"Key Terms","item":"https://fiveable.me/ap-cybersecurity/key-terms"},{"@type":"ListItem","position":3,"name":"Unit 5","item":"https://fiveable.me/ap-cybersecurity/unit-5"},{"@type":"ListItem","position":4,"name":"encryption"}]}]}
```
