A pure C implementation of TOTP (Time-based One-Time Password) and HOTP (HMAC-based One-Time Password) generation with zero external dependencies. Generates RFC 6238 / RFC 4226 compliant one-time passwords directly from the command line.
| Flag | Short | Description | Takes Value |
|---|---|---|---|
| --help | -h | Show help message and usage information | No |
| -a | — | Hash algorithm (sha1, sha256, sha512). Default: sha1 | Yes |
| -j | — | Output in JSON format | No |
| -s | — | Base32-encoded secret key for OTP generation | Yes |