https://github.com/akotov-dev/totpgen
Simple TOTP/HOTP Password Generator
https://github.com/akotov-dev/totpgen
2fa hotp mageia-linux password-generator qr redos rosa totp ubuntu
Last synced: 3 months ago
JSON representation
Simple TOTP/HOTP Password Generator
- Host: GitHub
- URL: https://github.com/akotov-dev/totpgen
- Owner: AKotov-dev
- License: gpl-3.0
- Created: 2024-03-25T06:09:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-25T14:37:40.000Z (4 months ago)
- Last Synced: 2025-02-25T15:32:58.553Z (4 months ago)
- Topics: 2fa, hotp, mageia-linux, password-generator, qr, redos, rosa, totp, ubuntu
- Language: Pascal
- Homepage:
- Size: 8.36 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TOTPgen
A simple one-time password generator using the `TOTP/HOTP` algorithm for two-factor authentication (2FA). The program works both from the `*.tar.gz` archive (with user rights, see Releases) and from the `rpm package` (root, pkexec/kdesu).
**Requires:** oath-toolkit **>= 2.6.7**, polkit, gtk2, qrencode, zbar, tar, gnupg2
**Work directory:** ~/.config/totpgen**Important:** for the program to work correctly, the time on the local computer must be accurate.
After launch, create an entry by clicking the `+` button. Enter the Record `Name`, the secret `Key` that was issued to you on the site and click the `Apply` button. Now click the `TOTP` button and receive a password to enter into the site; it will be copied to the clipboard. Depending on your requirements, you can double-click on the entry (or press `F4` on your keyboard, see tooltips) and change the parameters.
Starting with `v0.2`, TOTPgen can take `TOTP/HOTP` parameters from a **QR code on the screen** (button with an `eye`). In this case, a record is created automatically. The main thing is that the QR code is fully visible on the screen.
TOTPgen understands 2 secret key formats: `base32` and `hex`. The default is HASH=SHA1, DIGITS=6 (RFC 6238), the new password generation step is 30 seconds. The correctness of the key can be checked, for example, in the terminal:
```
oathtool --totp 'your_hex_secret_key'
oathtool -b --totp 'your_base32_secret_key'
```
If a `TOTP/HOTP` password is not created, enter the correct secret key. If the site does not accept a password, check the time on your computer.**Useful links:**
[2FA QR Code Generator](https://stefansundin.github.io/2fa-qr/), [TOTP/HOTP URI string format](https://docs.yubico.com/yesdk/users-manual/application-oath/uri-string-format.html)