Giter VIP home page Giter VIP logo

mfauth's Introduction

Multi-Factor Authentication [MFA] Implementation

The following project is the Implementation of Multi-Factor Authentication [MFA] as a part of Team Centinals SRM.

Notion: Notion Page for Project Report

Overview

This project focuses on implementing Multi-Factor Authentication (MFA) using various authentication factors, with a specific emphasis on Time-Based One-Time Passwords (TOTP). The goal is to enhance the security of user authentication by combining multiple factors, making unauthorized access more challenging.

Tools and Software Used

  • Node.js: JavaScript runtime for server-side development.
  • npm: Package manager for Node.js packages.
  • JavaScript: Programming language for both front-end and back-end development.
  • Firebase: Web front-end application platform.
  • Speakeasy: Library for implementing Time-Based One-Time Passwords (TOTP).
  • JWT (JSON Web Tokens): Used for user authentication.
  • Insomnia: Building, designing, testing better APIs through spec-first development driven by an APIOps CI/CD pipelines.
  • HOTP: HMAC-based One-Time Password
  • OAuth: Framework for secure authorization of third-party applications.
  • RFC 6238 Internet Engineering Task Force (IETF) standard defining the Time-Based One-Time Password (TOTP) algorithm.
  • CSPRNG A type of random number generator designed for cryptographic use, ensuring unpredictability and resistance to prediction or reproduction.
  • SHA-256
  • Aegis Authenticator
  • React Framework A front-end framework for user portal.

Install

git clone https://github.com/Gaoh19/MFAuth.git
cd MFAuth

TOTP

cd ImplementTOTP

For JavaScript TOTP:

npm install
npm run dev

Use Insomia for testing Auth.

For Python:

  1. Install Conda (Optional)
  2. Initialize Conda Env
  3. Import Dependencies
pip install qrcode[pil]
python pyTOTP.py

Scan QR using Authenicator application for verification

Thanks

Thanks to Susam for helping me with TOTP Implementation. I referred to his TOTP implementation at https://github.com/susam/mintotp/blob/main/mintotp.py while writing my own.

mfauth's People

Contributors

abuctf avatar

Watchers

 avatar

Forkers

thearpankumar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.