🔐 NVDA Add-on: 2FA Generator
Overview
2FA Generator is a powerful and accessible NVDA add-on that enables users to generate secure Time-based One-Time Passwords (TOTP) for two-factor authentication (2FA). This tool is especially designed for screen reader users to effortlessly handle OTP generation, copy to clipboard, save as text, and reset input.
This add-on utilizes the pyotp library and integrates seamlessly into NVDA's Tools menu.
✨ Features
- 🔐 Generate TOTP (Time-based One-Time Passwords) from a shared secret
- 📋 Copy OTP to clipboard with one click
- 💾 Save OTP to a text file
- 🔁 Reset form input fields
- 🔑 Keyboard shortcut to open:
NVDA + Alt + G
- 📂 Integrated into NVDA's Tools menu
- 🧑💻 Fully accessible and screen reader-friendly
🧠 Usage Instructions
After installation:
Option 1: From Tools Menu
- Press
NVDA + N to open the NVDA menu.
- Go to
Tools → 2FA Generator....
Option 2: Keyboard Shortcut
Press NVDA + Alt + G to launch the 2FA dialog directly.
Inside the Dialog:
- Enter Secret Code: Input your Base32 encoded shared secret.
- Generate TOTP: Click the button or press
Enter to generate OTP.
- Generated OTP: View the TOTP displayed in a read-only box.
- Copy OTP: Copies OTP to clipboard.
- Save OTP: Saves the OTP in a
.txt file.
- Reset: Clears input and output fields.
- Close: Closes the dialog.
🛠️ Dependencies