5 releases (3 breaking)

0.4.0 Mar 12, 2025
0.3.0 Oct 1, 2024
0.2.1 Apr 8, 2024
0.2.0 Jul 8, 2023
0.1.0 Sep 11, 2016

#197 in Cryptography

Download history 1/week @ 2024-12-04 2/week @ 2024-12-11 139/week @ 2025-03-12 7/week @ 2025-03-19

146 downloads per month

MIT license

9KB
156 lines

totp

A Time-Based One-Time Password (TOTP) generator CLI.

Usage

A Time-Based One-Time Password (TOTP) generator

To read from stdin: `echo <BASE32_SECRET> | totp`

Usage: totp [OPTIONS] [BASE32_SECRET]

Arguments:
  [BASE32_SECRET]  The Base32-encoded secret key (defaults to stdin)

Options:
  -i, --interval <INTERVAL>  The time step in seconds (the token period) [default: 30]
  -e, --epoch <EPOCH>        The Unix time form which to start counting steps [default: 0]
  -d, --digits <DIGITS>      The number of digits in the TOTP code [default: 6]
  -h, --help                 Print help (see more with '--help')

License

MIT © Stipe Kotarac (https://github.com/kotarac)

Dependencies

~1.7–2.4MB
~49K SLoC