Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 950 Bytes

File metadata and controls

37 lines (26 loc) · 950 Bytes

2FA Generator

2FA Generator is a small tool that creates time-based one-time passwords (TOTP) for two-factor authentication. Just enter your secret key, and the app will generate a code that refreshes every 30 seconds.

Features

  • Generate secure 2FA codes
  • Codes auto-refresh every 30 seconds
  • Copy code to clipboard with one click
  • Show error message if secret key is invalid

Requirements

  • Python 3.7 or later

  • Install required packages:

    pip install pyotp wxpython pyperclip
    

How to Use

  1. Run the program:

    python 2FAGenerator.py
    
  2. Paste your 2FA secret key into the input box.

  3. Press Generate 2FA Code

  4. A new code will appear and refresh automatically every 30 seconds.

  5. Press Copy to Clipboard to copy the code.

Notes

  • Works with any service that uses standard TOTP (Google, Microsoft, Facebook, etc.).
  • Secret key must be correct, otherwise the app will not generate codes.