technifyed

Cybersecurity + Pure Mathematics

Implement classic ciphers and break them

Write Caesar and substitution ciphers, then crack them with frequency analysis.

  • DifficultyEasy
  • Estimated time2–7 days
  • Budget₹0
  • ClassClass 8–12
  • TeamSolo or up to 2
  • You needComputer only

Prerequisites: None beyond your class work

Original · by TechnifyedInvestigationSoftware ProjectBeginner friendlyFree to doComputer onlyResearch orientedWell documentedTwo subjects

My projects

Overview

Write Caesar and substitution ciphers, then crack them with frequency analysis.

Why build this?

Breaking your own cipher is the fastest way to understand why modern encryption is designed as it is.

What you will learn

  • How substitution ciphers work
  • How letter frequencies reveal a key
  • Why a small key space is weak

Skills you will use

Frequency countingString manipulation

Materials and tools

  • Computer with Python 3
  • A few paragraphs of English text

Tools and software

Python

Expected cost₹0Nothing to buy
Estimated duration2–7 days5 build steps, plus the report

Step-by-step roadmap

  1. Start

    You will finish with: working ciphers and a demonstration that both can be broken.

  2. 1

    Prerequisites

    Nothing special to know first. Then collect the 2 items in the materials list.

  3. 2

    Learn

    • How substitution ciphers work
    • How letter frequencies reveal a key
    • Why a small key space is weak
  4. 3

    Plan

    List the features for version one, sketch the screens or data flow and pick the tools. Keep the first version small.

  5. 4

    Build

    1. Write functions to encrypt and decrypt with a Caesar shift.
    2. Break it by trying all 26 shifts.
    3. Write a substitution cipher with a random key.
    4. Count letter frequencies in the ciphertext.
    5. Use English letter frequencies to recover the key.
  6. 5

    Test

    Try it with wrong, empty and unusual input, and ask someone else to use it without your help.

  7. 6

    Document

    Write a README: what it does, how to run it, screenshots and what you learned. Report structure

  8. 7

    Present

    Show a live demo of one complete task, then the design and the hardest problem you solved. Presentation structure · Viva questions

  9. 8

    Publish

    Put the code on GitHub with the README and, if you can, deploy a live demo.

Expected outcome

Working ciphers and a demonstration that both can be broken.

Other versions of this project

Beginner version

Write only the Caesar cipher and try all 26 shifts.

Advanced version

Implement the Vigenère cipher and break it with the Kasiski method.

Make this project better

  1. BasicWrite only the Caesar cipher and try all 26 shifts.
  2. This projectImplement classic ciphers and break them
  3. AdvancedImplement the Vigenère cipher and break it with the Kasiski method.

Ways to do this project

Text marked "You write this" is a prompt for your own work; everything else is specific to this project.

Problem
You write thisWrite your question as: How does [what you change] affect [what you measure]?
Hypothesis
You write thisWrite it as: If [I change this], then [this will happen], because [reason].
Variables
You write thisName the one thing you change (independent), the thing you measure (dependent) and what you keep the same (controlled).

Observation table

You write thisDraw a table with one column for what you change, one for each repeat reading and one for the average.

Graph
You write thisPlot what you changed along the bottom and what you measured up the side; use a bar chart for categories and a line graph for numbers.
Results
You write thisState what the graph shows in one or two sentences, with numbers.
Conclusion
You write thisSay whether the result supports your hypothesis and why you think so.

Display board

  • Title and your name
  • Question
  • Hypothesis
  • Materials
  • Procedure (with photos)
  • Data table and graph
  • Conclusion
  • What you would do next

Questions judges ask

  • Why is a Caesar cipher weak?
  • What is frequency analysis?
  • What is the most common letter in English?
  • What would you change if you did this again?
  • What was your biggest source of error, and how did you reduce it?
  • Where is this idea used in real life?

Working as a team

Solo or up to 2. Suggested roles:

FrontendBackendData or modelDesignTestingDocumentationPresentation

Report and presentation

Report structure

  1. Title and summary
  2. Problem and target user
  3. Features
  4. Tools and technology
  5. Design: architecture, data model or screens
  6. Implementation
  7. Testing
  8. Results and screenshots
  9. Challenges
  10. Future improvements
  11. References

Presentation structure

  1. The problem
  2. Who it is for
  3. Live demo
  4. How it is built (one diagram)
  5. The hardest part
  6. Testing and results
  7. What you learned
  8. What comes next

Viva questions

Try answering before you open each one.

Why is a Caesar cipher weak?

There are only 25 possible keys, so all can be tried.

What is frequency analysis?

Using how often letters appear to guess which ciphertext letter stands for which.

What is the most common letter in English?

E.

Resources

Source and attribution

Original

Written by Technifyed. Free to use for your own school or college project; write the report in your own words. Added 1 Oct 2026.

Similar projects

More Cybersecurity projects

Cybersecurity · Authentication

Build a password strength checker

Score a password's strength, explain why, and estimate how long it would take to guess.

  • Easy
  • 2–7 days
  • Free
Software Project · Computer onlyView

Cybersecurity · Privacy

Audit your digital footprint

Find what is publicly visible about you online and tighten your privacy settings.

  • Easy
  • 2–7 days
  • Free
Investigation · Computer onlyView

Cybersecurity · Digital Forensics

Recover deleted files from a test drive

Delete files on a spare USB drive, image it and see what can be recovered and why.

  • Intermediate
  • 2–7 days
  • Free
Investigation · Computer onlyView

Cybersecurity + Systems and Cloud

Analyse your own home network traffic

Capture traffic on your own computer and identify which protocols and services it talks to.

  • Intermediate
  • 2–7 days
  • Free
Investigation · Computer onlyView

Same tools

Programming · Python

Build a Snake game

Program the classic Snake with scoring, growing length and game over.

  • Easy
  • 2–7 days
  • Free
Game · Computer onlyView

Programming · Python

Make a to-do list app that saves to a file

Build a command-line task manager that adds, completes, deletes and saves tasks between runs.

  • Easy
  • 2–7 days
  • Free
Software Project · Computer onlyView

Data · Data Analytics

Explore a dataset and tell its story

Pick a public dataset, ask five questions of it and answer each with a chart.

  • Easy
  • 2–7 days
  • Free
Data Analysis · Computer onlyView

Programming · Python

Automate a boring task with a script

Write a script that renames and sorts a messy folder of files by type and date.

  • Easy
  • 2–7 days
  • Free
Software Project · Computer onlyView

Two-subject alternatives

Public Policy and Governance + Cybersecurity

Study data privacy in the apps you use

Read the privacy policies and permissions of five apps and compare what they collect.

  • Easy
  • 2–7 days
  • Free
Research Project · A phoneView

Pure Mathematics + Geography

Investigate the four-colour theorem with maps

Colour maps of states and districts with as few colours as possible and link it to graph colouring.

  • Easy
  • 1 day
  • Under 250
Investigation · Household materialsView

Pure Mathematics + Biology

Explore the Fibonacci sequence in nature

Count spirals on pine cones, sunflowers and pineapples and test whether they are Fibonacci numbers.

  • Beginner
  • 2–7 days
  • Free
Investigation · Household materialsView

Programming + Cybersecurity

Make a file encryption tool

Encrypt and decrypt files with a password using a well-tested library.

  • Intermediate
  • 2–7 days
  • Free
Software Project · Computer onlyView

Same difficulty and budget

Artificial Intelligence · NLP

Build a rule-based chatbot for school FAQs

Answer common questions about your school with keyword matching and a fallback reply.

  • Easy
  • 2–7 days
  • Free
Software Project · Computer onlyView

Software Development · Frontend

Make a personal portfolio website

Design and publish a fast, mobile-friendly site that shows who you are and what you have built.

  • Easy
  • 2–7 days
  • Free
Web App · Computer onlyView

Programming · JavaScript

Build a typing speed tester

Show a passage, time the user typing it and report words per minute and accuracy.

  • Easy
  • 2–7 days
  • Free
Web App · Computer onlyView

Enter your email and the official page opens. Phone is optional.