Course Template

Secret Writing Programming

Caesar Encryption, Substitution Cipher, Vigenère and Simple Hash Functions in Python.

Category: Cryptography Languages: Python and Java Components: 8
Supplementary Materials Included: Lecture Slides (PowerPoint) and Instructor Handout
Preview Image: Secret Writing Programming

Didactic Objective

This template enables a structured introduction to basic procedures of cryptography through their algorithmic implementation in Python. Professional competencies are built up through the implementation of classical encryption methods and simple hash functions, and linked to central programming concepts such as loops, conditions, and data structures. The connection between modeling cryptographic procedures, their structured algorithmic implementation and the concrete implementation in code is systematically established. Professionally, the template can be located in the area of algorithmic modeling and data processing.

Competency Focus

Structure of components

Caesar encryption (A–Z) in Python

Introduction to the algorithmic implementation of a cyclic shift of letters for uppercase letters using ord()/chr() and modulo.

35 minutes @🧩 1 Task

Caesar decrypt (Decrypt function)

Supplementing a decryption function as the inverse of encryption using reusable functional logic.

35 minutes 🧩 3 Tasks

Caesar cracking: Brute-Force 1–25

Application of loops for systematic testing of all possible keys and output of potential plaintexts.

35 minutes 🧩 2 Tasks

Substitution cipher: Secret Alphabet

Implementation of a substitution-based encryption through index mapping with validation of a secret alphabet.

35 minutes 🧩 3 Aufgaben

Substitution code decrypt with Dictionary

Building an automated reverse mapping using a dictionary to revert encrypted text into plain text.

🧩 3 Aufgaben

Vigenère encryption with Keyword

Implementation of position-dependent encryption based on a keyword and modulo calculation.

🧩 2 Aufgaben

Vigenère decrypt with Keyword

Development of the inverse function while maintaining keyword-index logic and reverse shifting.

⏱️ 35 min 🧩 1 Aufgaben

Simple Password Hash & Mini-Login

Introduction to the principle of hash functions through addition of letter values and comparison of stored hash values.

⏱️ 35 min 🧩 2 Aufgaben
Use this template as a customizable basis for cryptographic programming tasks in the classroom. Template test
This template supports competency-oriented introduction to cryptographic procedures and leads structured to implementation in code.

The clearly structured modules enable transparent goal orientation and can be flexibly integrated into existing lesson series.

A demo access allows the testing of the template and its adaptation to the respective learning group in the classroom context.