4 releases (2 breaking)

0.3.0 Oct 1, 2024
0.2.1 Apr 8, 2024
0.2.0 Jul 8, 2023
0.1.0 Sep 11, 2016

#110 in Authentication

Download history 8/week @ 2024-07-29 9/week @ 2024-09-23 156/week @ 2024-09-30

165 downloads per month

MIT license

7KB
75 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.5–2.2MB
~42K SLoC