Please enable JavaScript to use CodeHS

AP Computer Science Principles: Cybersecurity

Lesson 10.2 Decrypting and Breaking Caesar Ciphers

Description

This lesson introduces students to the concept of decryption in the Caesar cipher. Students will extend their existing encryption program to include a decryption feature and apply their understanding of shifting characters in the alphabet. They will also experiment with breaking a Caesar cipher through brute-force techniques.


Objective

Students will be able to:
- Implement a decryption function in JavaScript for a Caesar cipher.
- Understand how encryption and decryption are inverse operations.
- Experiment with breaking an encrypted message through brute-force shifting.
- Reflect on the strengths and weaknesses of the Caesar cipher.