usage: otp_secret_generator.py [-h] [-t {hotp,totp}] [-o {uri,png,tmp}]
[-i ISSUER] [-b {160,200,240,280,320}]
[-a {SHA1,SHA256}] [-d {6,7,8}] [-c COUNTER]
[-p {30,60}]
USER [USER ...]
OTP Secret Generator
positional arguments:
USER Username
optional arguments:
-h, --help show this help message and exit
-t {hotp,totp}, --type {hotp,totp}
OTP type (default: hotp)
-o {uri,png,tmp}, --output {uri,png,tmp}
Output format (default: tmp)
Common options:
-i ISSUER, --issuer ISSUER
Issuer (default: Duo)
-b {160,200,240,280,320}, --bits {160,200,240,280,320}
Bits in OTP shared secret (default: 160)
-a {SHA1,SHA256}, --algorithm {SHA1,SHA256}
OTP algorithm (default: SHA1)
-d {6,7,8}, --digits {6,7,8}
OTP digits (default: 6)
HOTP options:
-c COUNTER, --counter COUNTER
HOTP counter start value (default: 0)
TOTP options:
-p {30,60}, --period {30,60}
TOTP refresh period (default: 30)
uri
output displays the otpauth://...
URI.
tmp
output shows the generated QR code via a temporary file.
png
output saves the generated QR code to <username>.png
.