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.
- 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
-
Python 3.7 or later
-
Install required packages:
pip install pyotp wxpython pyperclip
-
Run the program:
python 2FAGenerator.py -
Paste your 2FA secret key into the input box.
-
Press Generate 2FA Code
-
A new code will appear and refresh automatically every 30 seconds.
-
Press Copy to Clipboard to copy the code.
- Works with any service that uses standard TOTP (Google, Microsoft, Facebook, etc.).
- Secret key must be correct, otherwise the app will not generate codes.