π“‚€
β˜₯
π“‹Ή
WARMUP 5 min

Caesar Cipher Challenge

Before modern encryption, Julius Caesar used a simple shift cipher to send military messages. Each letter is shifted by a fixed number down the alphabet.

WKH HDJOH LV WKH NLQJ RI WKH VNLHV

Shift: 3 to the right. Can you decode it?

CORE 45 min
π“‚€β˜₯π“‹Ή
Classical Ciphers

Ancient encryption methods that rely on simple substitution or transposition:

Caesar
HELLO -> KHOOR (shift +3)
Vigenère
Uses a keyword to determine variable shifts.
Atbash
Reverses the alphabet: A-Z, B-Y, etc.

All classical ciphers are trivially broken with modern computing β€” frequency analysis or brute force.

Symmetric Encryption

Both parties share the same secret key for encryption and decryption.

AES-256-CBC # Industry standard β€” 256-bit key, Cipher Block Chaining
openssl enc -aes-256-cbc -salt -in file.txt -out file.enc
AES
Advanced Encryption Standard. Used by governments worldwide. Block cipher β€” operates on 128-bit blocks.
ChaCha20
Stream cipher, faster than AES on mobile. Used in TLS & SSH.
Hashing

Hash functions produce a fixed-length fingerprint of data. They are one-way β€” you cannot reverse a hash back to the original input.

echo -n "password123" | sha256sum
# ef92b778bafe771f8920b5f94e6d457bb1d6c70f...
Common Hash Algorithms
MD5 β€” broken, never use. SHA-1 β€” deprecated. SHA-256 β€” secure. bcrypt/argon2 β€” designed for passwords (slow + salt).
MINI CHALLENGE 10 min
π“‚€β˜₯π“‹Ή
Decrypt a Message

You've intercepted a Vigenère-encrypted message. The keyword is KEY.

RIJVSUYVJN

Hint: Vigenère uses the keyword to shift each letter. K=10, E=4, Y=24. Decrypt by subtracting.

MAIN PROJECT 4 hours
π“‚€β˜₯π“‹Ή
Design an Encryption Protocol

Design a secure communication protocol for a messaging app. Your design must address:

1
Key Exchange

How do two users securely share a symmetric key? (Hint: Diffie-Hellman)

2
Encryption

Which symmetric cipher? AES-256-GCM? Key size? Initialisation vector (IV) handling?

3
Integrity

How do you ensure messages haven't been tampered with? HMAC? Authenticated encryption?

4
Forward Secrecy

If the long-term key leaks, past messages should still be secure. How?

QUIZ 10 min
π“‚€β˜₯π“‹Ή
Cryptography Quiz

1. Which of these is a symmetric encryption algorithm?

SHA-256
AES
RSA

2. What property makes hashing suitable for storing passwords?

It is reversible with a key
It produces variable-length output
It is one-way and deterministic

3. Why is MD5 no longer recommended?

It is too slow
It produces short outputs
Collision attacks have been demonstrated