technifyed

Cybersecurity · Authentication

Build a two-factor authentication demo

Add time-based one-time codes to a login page and explain how they are generated.

  • DifficultyIntermediate
  • Estimated time1–2 weeks
  • Budget₹0
  • ClassClass 12 to college
  • TeamSolo or up to 2
  • You needComputer only

Prerequisites: None beyond your class work

Original · by TechnifyedPortfolio ProjectSoftware ProjectFree to doComputer onlyPortfolio focused

My projects

Overview

Add time-based one-time codes to a login page and explain how they are generated.

Skills you will use

Hashing passwordsSession handlingTime-based codes

Safety

  • Practise only on your own devices, accounts and networks, or on labs made for training. Testing systems you do not own without written permission is illegal.

Materials and tools

  • Computer with Python and Flask
  • An authenticator app on a phone

Tools and software

FlaskPython

Expected cost₹0Nothing to buy
Estimated duration1–2 weeks5 build steps, plus the report

Step-by-step roadmap

  1. Start

    You will finish with: a login flow with working two-factor codes and a diagram of the algorithm.

  2. 1

    Prerequisites

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

  3. 2

    Learn

    Read up on authentication: 2FA, login security, TOTP. Your textbook chapter and one short video are enough.

  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. Build registration and login with properly hashed passwords.
    2. Generate a secret per user and show it as a QR code.
    3. Verify the six-digit code at login.
    4. Add backup codes.
    5. Limit attempts and log failures.
  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

  9. 8

    Publish

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

Expected outcome

A login flow with working two-factor codes and a diagram of the algorithm.

Other versions of this project

Advanced version

Implement the code generation yourself from the standard and compare with the library.

Ways to do this project

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

Use this as the outline of your README or case study.

Problem
You write thisThe problem in one or two sentences.
Why it matters
You write thisWho has this problem and what it costs them.
What was built
A login flow with working two-factor codes and a diagram of the algorithm.
Technology
Flask, Python
Architecture
You write thisOne diagram: the parts and how data moves between them.
Implementation
You write thisThe 5 build steps in your own words, with one code or design decision you are proud of.
Challenges
You write thisThe hardest bug or decision, and how you got past it.
Results
You write thisNumbers: accuracy, speed, users, survey answers.
Demo and code
You write thisA link to a live demo or a short video, and to the GitHub repository.
Lessons learned
You write thisWhat you would do differently next time.
Future improvements
Implement the code generation yourself from the standard and compare with the library.

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

Prepare your own answers to these before you present.

  • What is the aim of your project, in one sentence?
  • What is the principle behind it?
  • Why did you choose these materials or tools?
  • What result did you get, and was it what you expected?
  • What went wrong and how did you fix it?
  • How could this be improved or used in real life?

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 · Secure Coding

Write a secure-coding checklist from real bugs

Study ten public security fixes in open-source projects and turn them into a review checklist.

  • Intermediate
  • 1–2 weeks
  • Free
Research Project · 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

Literature and English + Data

Analyse word use in a novel with a computer

Count words and character mentions in a public-domain novel and see what the numbers reveal.

  • Intermediate
  • 1–2 weeks
  • Free
Data Analysis · Computer onlyView

Two-subject alternatives

Public Policy and Governance + Cybersecurity

Debate how social media should be regulated

Research one proposal for regulating online platforms and present the strongest case for and against.

  • Intermediate
  • 1–2 weeks
  • Free
Research Project · No equipmentView

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

Artificial Intelligence + Cybersecurity

Build a face-blurring privacy tool

Detect faces in photos and blur them automatically before sharing.

  • Intermediate
  • 2–7 days
  • Free
AI/ML Project · Computer onlyView

Pure Mathematics + Cybersecurity

Break a secret with number theory: how RSA works

Encrypt and decrypt a message with small primes by hand, then in code, and see why large primes matter.

  • Advanced
  • 1–2 weeks
  • Free
Investigation · Computer onlyView

Same difficulty and budget

Software Development · Mobile Apps

Build a habit tracker with streaks

Create an Android app to tick off daily habits and see streaks and a calendar heat map.

  • Intermediate
  • 1–2 weeks
  • Free
Mobile App · Computer onlyView

Data + Operations, HR and Supply Chain

Build a sales dashboard

Turn a public retail dataset into a one-page dashboard that answers a manager's questions.

  • Intermediate
  • 1–2 weeks
  • Free
Visualization · Computer onlyView

Artificial Intelligence + Marketing

Cluster customers into groups

Group customers by spending behaviour with k-means and describe each group in plain words.

  • Intermediate
  • 1–2 weeks
  • Free
AI/ML Project · Computer onlyView

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