https://github.com/joebb10/autsec-two-factor-authentication
This Python script simulates a two-factor authentication (2FA) system using TOTP (Time-based One-Time Password) and backup codes. It provides functionalities for user registration, login, and validation of TOTP or backup codes.
https://github.com/joebb10/autsec-two-factor-authentication
2fa-security authentication backup cybersecurity security-tools totp-generator twofactorauth
Last synced: 2 months ago
JSON representation
This Python script simulates a two-factor authentication (2FA) system using TOTP (Time-based One-Time Password) and backup codes. It provides functionalities for user registration, login, and validation of TOTP or backup codes.
- Host: GitHub
- URL: https://github.com/joebb10/autsec-two-factor-authentication
- Owner: joebb10
- Created: 2024-03-31T19:36:33.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-31T19:40:32.000Z (about 1 year ago)
- Last Synced: 2025-01-17T16:16:50.436Z (4 months ago)
- Topics: 2fa-security, authentication, backup, cybersecurity, security-tools, totp-generator, twofactorauth
- Language: Python
- Homepage: https://autsec.io
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Autsec Two Factor Authentication
This Python script simulates a basic two-factor authentication (2FA) system using TOTP (Time-based One-Time Password) and backup codes. It provides functionalities for user registration, login, and validation of TOTP or backup codes.
# Features
- User Registration: Users can register with their email addresses and generate secret keys, backup codes, and QR codes for 2FA setup.
- Login: Users can log in using either their TOTP generated by an authenticator app or backup codes.
- Rate Limiting: Implements rate limiting to prevent brute-force attacks, blocking users temporarily after exceeding a certain number of failed login attempts.# How to Use
# Registration:
- Choose the "Register" option.
- Enter your email address to register.
- Follow the instructions to set up 2FA with TOTP and backup codes.
# Login:
- Choose the "Login" option.
- Enter your email address.
- Provide the TOTP from your authenticator app or a backup code when prompted.
# Exit:
- Choose the "Exit" option to terminate the program.
# Security ConsiderationsThis script provides a simulation of a basic 2FA system and is for educational purposes only.
In a real-world scenario, use established libraries and services for implementing secure authentication mechanisms.