English | 中文
Offline TOTP / HOTP Generator.
No cloud · No internet · No tracking.
Generate one-time passwords locally from QR codes or otpauth:// URIs.
Fully compatible with Google Authenticator, FreeOTP, FreeOTP Plus.
pip install pillow pyzbar pexpectLinux
sudo apt install libzbar0macOS
brew install zbarpython otp_local/qr.py
python otp_local/qr.py image.pngSupported formats:
png / jpg / jpeg / webp
Output:
otpauth.txt
python main.pyExample output:
[OTP] 123456 | Valid for 27s
Environment variables:
export OTP_SSH_USER=username
export OTP_SSH_HOST=example.com
export OTP_SSH_PORT=22python ssh_auto.py- ❌ No internet access
- ❌ No cloud synchronization
- ❌ No secret upload
- ✔ All secrets stay local
- ✔ RFC 4226 / 6238 compliant
otp-local/
├── otp_local/
│ ├── __init__.py
│ ├── core.py
│ └── qr.py
├── main.py
├── ssh_auto.py
├── otpauth.txt
└── qr.png / qr.jpg
MIT