| TOTP(1) | General Commands Manual | TOTP(1) |
NAME
uri2totp —
generate TOTP codes from URIs
SYNOPSIS
uri2totp |
[uri ...] |
DESCRIPTION
The uri2totp utility generates TOTP codes
from ‘otpauth://’ URIs. If no
uri is provided, then URIs will be read from the
standard input, newline-separated.
For a URI to be considered valid it must have a scheme of ‘otpauth’ and a valid ‘secret’ query paramter. If no ‘digits’ or ‘period’ query parameters exist, the totp(1) default will be used.
EXIT STATUS
The uri2totp utility exits 0 on
success, and >0 if an error occurs.
EXAMPLES
Generate a TOTP code from a URI:
$ uri2totp
'otpauth://totp/foo?secret=DEADBEEF'SEE ALSO
AUTHORS
Thomas Voss <mail@tvoss.eu>
| April 26, 2026 | TOTP 3.0 |