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.
https://final-yr-project-exhvzbn5de2ttjzoyth7av.streamlit.app/
-
Traditional authentication systems rely on static password hashing, which can be vulnerable to replay attacks and pattern analysis.
-
This project introduces a Flip-Flop circuit–inspired transformation mechanism that dynamically alters password states before encryption, ensuring enhanced security.
-
Each successful login generates a unique session token, even for repeated logins with the same credentials.
- Flip-Flop Password Transformation
- SHA-256 Secure Password Encryption
- Dynamic Token Generation (Time + Random Seed)
- Login Timestamp Tracking
- Login History with Token Records
- State-based Authentication Logic
- Web Interface using Streamlit
- Programming Language: Python
- Framework: Streamlit
- Security: SHA-256 (hashlib)
- Flip-Flop Logic
- State Machines
- Cryptographic Hashing
- Token-Based Authentication
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
- Token Generation:
- Token is generated based on:
- Username
- Transformed password
- Current timestamp
- Random seed
- Ensures non-reusable tokens
Tracks:
- Login count
- Login timestamps
- Generated tokens
- User Registration
- Secure Login
- Token Generation
- Login History Viewer
- Registered Users Dashboard
This project was developed as a Final Year Engineering Project and demonstrates:
- Secure system design
- Authentication algorithms
- Real-world application of cryptography
- Practical implementation of theoretical digital logic concepts
- Demonstrates security-focused thinking
- Goes beyond basic CRUD authentication
- Implements custom authentication logic
- Shows ability to build production-like systems
- Strong foundation for Backend / Security / Software Developer roles
Nabin Gayak H | B.E. Computer Science Engineering | Entry-level Software Developer | Java | React
GitHub: https://github.com/NABINGAYAKH
Portfolio: https://nabingayakh.github.io/MY_PORTFOLIO/
This project is for educational and academic use.