susam/mintotp
Minimal TOTP generator in 20 lines of Python observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2582
- days_rel: n/a
- days_push: 956
- n_releases_24m: 0
Adoption not part of the score
1399 stars · 92 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
MinTOTP is a minimal TOTP (time-based one-time password) generator written in about 20 lines of Python, usable as a CLI tool or as importable module functions. It generates 2FA codes from Base32 secret keys on any system with Python 3.4+.
Use cases
- generate TOTP 2FA codes from the command line
- generate one-time passwords from a Base32 secret key
- replace a mobile authenticator app with a Python script
- generate TOTP values programmatically in Python
- decrypt a GPG-encrypted 2FA secret and generate codes
- learn how the TOTP/HOTP algorithm works from minimal source code
When to choose
- you want a tiny, auditable TOTP generator with minimal dependencies
- you need to generate 2FA codes on a headless server or any machine with Python 3.4+
- you want to embed TOTP generation in Python code via module-level functions
When to avoid
- you need a full-featured authenticator app with QR scanning, multi-account UI, or encrypted storage
- you need HOTP counter-based workflows or advanced OTP features beyond basic TOTP generation
Facets
cli-tool · maturity maintenance
cryptography security cli security developer-tools python cli cross-platform totp 2fa hotp authenticator minimalist one-time-password command-line
2 sources
- readme: https://github.com/susam/mintotp · fetched 2026-08-28 · d3c6f9ba278d
- registry_pypi: https://pypi.org/pypi/mintotp/json · fetched 2026-08-29 · bd88453fe2ae
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| susam/mintotp | main | 32 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem