Lesson Plan: Creating a Caesar Cipher

Lesson Overview

In this lesson, students will learn about the Caesar cipher, a simple encryption technique. They will then implement their own Caesar cipher encoder and decoder using Python.

Learning Objectives

Lesson Structure

1. Pseudocode for Caesar Cipher (10 min)

Discuss the logic:

2. Implementing the Caesar Cipher in Python (20 min)

Step 1: Writing the encryption function

def caesar_cipher_encrypt(text, shift): encrypted_text = "" for char in text: if char.isalpha(): ********* missing Code *************

Step 2: Writing the decryption function

def caesar_cipher_decrypt(text, shift): return caesar_cipher_encrypt(text, -shift)

Step 3: Testing the functions

message = "Hello, World!" shift_value = 3 encrypted_message = caesar_cipher_encrypt(message, shift_value) *************** missing Code ********************* print(f"Decrypted: {decrypted_message}")

3. Enhancements & Challenges (15 min)

4. Q&A and Wrap-up (5 min)

Assessment

*********
*********
  You will drop off 4 files into Google Classroom:
			• Your files will be: (Remember the python program is dropped off first.)
			• PX_lastname_CeasarCipherPython.py (Actual Python code)
			• PX_lastname_CeasarCipherPython.png (Screenshot in the Cyber Range)
			• PX_lastname_CeasarCipherPython.txt (Source code as Text)
			• PX_lastname_CeasarCipherPython.mp4 (Video running the program)