Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akotov-dev/totpgen
Simple TOTP/HOTP Password Generator
https://github.com/akotov-dev/totpgen
2fa hotp mageia-linux password-generator qr totp
Last synced: about 2 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 (9 months ago)
- Default Branch: main
- Last Pushed: 2024-08-05T15:34:35.000Z (5 months ago)
- Last Synced: 2024-08-05T17:33:08.509Z (5 months ago)
- Topics: 2fa, hotp, mageia-linux, password-generator, qr, totp
- Language: Pascal
- Homepage:
- Size: 5.99 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, zbar
**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.![](https://github.com/AKotov-dev/TOTPgen/blob/main/ScreenShot3.png)
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.