Encryption

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.

Verified for the 2027 AP Cybersecurity examLast updated June 2026

What is encryption?

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, 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 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 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 encryption matters in AP Cybersecurity

Encryption lives in Unit 5: Securing Applications and Data, specifically Topic 5.3 (Protecting Stored Data with Cryptography). It anchors two learning objectives: AP Cybersecurity 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.

Keep studying AP Cybersecurity Unit 5

How encryption connects across the course

Ciphertext and Plaintext (Unit 5)

These are the input and output of encryption. Plaintext goes in, you mix it with a key, and ciphertext comes out. Decryption just runs that pipeline backward.

AES (Unit 5)

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 like SHA-256.

Decryption (Unit 5)

Decryption is the mirror image of encryption. Same algorithm, same key in the symmetric case, run in reverse to recover the plaintext.

Is encryption on the AP Cybersecurity 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 things to remember about encryption

  • 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.

Frequently asked questions about encryption

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.

Keep studying AP Cybersecurity

Connect this key term to the AP exam workflow: review the course, practice questions, and check related study tools.