A CLI tool for managing TOTP accounts. All accounts are stored in a local file that's encrypted with the provided password. If you don't provide the -p argument it will expect the password on stdin.
Running trotp
without any arguments will run the TUI interface.
bash
cargo install trotp
bash
trotp --help
``` trotp 1.0.0 Krakaw <41575888+Krakaw@users.noreply.github.com> TUI TOTP generator
USAGE: trotp [OPTIONS] [SUBCOMMAND]
OPTIONS:
-h, --help Print help information
-p, --password
SUBCOMMANDS: add Add a new account check Check an OTP delete Delete an account dump Dump the config file help Print this message or the help of the given subcommand(s) interactive Run in interactive mode [default] serve Start an HTTP Server ```
tortp -p password add -a AccountName -s SecretToken -u Username -p Password123 -n Note
trotp -p password delete -a AccountName
trotp -p password check -t TokenSecretKey -o 123456 -s 2022-06-03T08:35:00+02:00 -r 10
trotp -p password serve
# Example using a secret for a once off TOTP
curl localhost:8080/JBSWY3DPEHPK3PXP
{"account_name":"Secret","code":"359962","expiry":11}
curl localhost:8080/acc
{"account_name":"Account 1","code":"783196","expiry":30}
| Key Binding | Action |
|-------------|-------------------------|
| /
| Switch to insert mode |
| Esc
| Switch to normal mode |
| Tab
| Toggle password mode |
| Ctrl-c
| Exit |
| Down
| Select next account |
| Up
| Select previous account |
| Enter
| Copy OTP to clipboard |