Skip to content

Flip-Flop based Authentication System with SHA-256 encryption and dynamic token generation, built using Python and Streamlit for secure session handling.

Notifications You must be signed in to change notification settings

NABINGAYAKH/Final-yr-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Securing Data with Novel Flip-Flop Circuit Authentication Algorithm

A secure authentication system implementing a novel Flip-Flop–based password transformation algorithm combined with SHA-256 encryption and dynamic token generation. This project demonstrates advanced concepts in authentication security, state-based logic, and secure session handling using Python and Streamlit.

Live Demo:

https://final-yr-project-exhvzbn5de2ttjzoyth7av.streamlit.app/

Project Overview:

  1. Traditional authentication systems rely on static password hashing, which can be vulnerable to replay attacks and pattern analysis.

  2. This project introduces a Flip-Flop circuit–inspired transformation mechanism that dynamically alters password states before encryption, ensuring enhanced security.

  3. Each successful login generates a unique session token, even for repeated logins with the same credentials.

Key Features:

  1. Flip-Flop Password Transformation
  2. SHA-256 Secure Password Encryption
  3. Dynamic Token Generation (Time + Random Seed)
  4. Login Timestamp Tracking
  5. Login History with Token Records
  6. State-based Authentication Logic
  7. Web Interface using Streamlit

Tech Stack:

  1. Programming Language: Python
  2. Framework: Streamlit
  3. Security: SHA-256 (hashlib)

Concepts Used:

  1. Flip-Flop Logic
  2. State Machines
  3. Cryptographic Hashing
  4. Token-Based Authentication

Authentication Workflow:

1️. User Registration:

  • Password is transformed using a flip-flop logic algorithm
  • Transformed password is encrypted using SHA-256
  • Credentials stored securely in session state

2️. User Login:

  • Password is re-transformed and encrypted
  • Encrypted value is matched against stored hash
  • A new token is generated for every successful login
  1. Token Generation:
  • Token is generated based on:
  • Username
  • Transformed password
  • Current timestamp
  • Random seed
  • Ensures non-reusable tokens

Login History:

Tracks:

  1. Login count
  2. Login timestamps
  3. Generated tokens

Application Screens:

  1. User Registration
  2. Secure Login
  3. Token Generation
  4. Login History Viewer
  5. Registered Users Dashboard

Academic Relevance:

This project was developed as a Final Year Engineering Project and demonstrates:

  1. Secure system design
  2. Authentication algorithms
  3. Real-world application of cryptography
  4. Practical implementation of theoretical digital logic concepts

Why This Project Matters (For Recruiters):

  1. Demonstrates security-focused thinking
  2. Goes beyond basic CRUD authentication
  3. Implements custom authentication logic
  4. Shows ability to build production-like systems
  5. Strong foundation for Backend / Security / Software Developer roles

Author:

Nabin Gayak H | B.E. Computer Science Engineering | Entry-level Software Developer | Java | React

Links:

GitHub: https://github.com/NABINGAYAKH

Portfolio: https://nabingayakh.github.io/MY_PORTFOLIO/

License:

This project is for educational and academic use.

About

Flip-Flop based Authentication System with SHA-256 encryption and dynamic token generation, built using Python and Streamlit for secure session handling.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages