Linux command
cotp 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Launch
cotp
Add
cotp add --label [myaccount@gmail.com] --issuer [Google]
Add
cotp add --label [example] --type hotp --algorithm SHA256 --digits 8 --counter 10
List
cotp list --json
Extract
cotp extract --issuer [Google] --copy-clipboard
Import
cotp import --path [my_backup.json] --aegis-encrypted
Export
cotp export
说明
cotp is a trustworthy, encrypted, command-line TOTP/HOTP authenticator written in Rust. It generates both TOTP (Time-based One-Time Password, RFC 6238) and HOTP (HMAC-based One-Time Password, RFC 4226) codes, and also supports Steam, Yandex, and MOTP code generation. All data is stored in a single encrypted database file using XChaCha20Poly1305 authenticated encryption with Argon2id key derivation. The default location is $HOME/.cotp/db.cotp, configurable via the COTP_DB_PATH environment variable. The interactive TUI dashboard displays all OTP codes with fuzzy search, and clipboard copying works over SSH.
参数
- --database-path _PATH_
- Use a custom database file path.
- --password-stdin
- Read the database password from stdin.
- --help
- Display help for the command or subcommand.
FAQ
What is the cotp command used for?
cotp is a trustworthy, encrypted, command-line TOTP/HOTP authenticator written in Rust. It generates both TOTP (Time-based One-Time Password, RFC 6238) and HOTP (HMAC-based One-Time Password, RFC 4226) codes, and also supports Steam, Yandex, and MOTP code generation. All data is stored in a single encrypted database file using XChaCha20Poly1305 authenticated encryption with Argon2id key derivation. The default location is $HOME/.cotp/db.cotp, configurable via the COTP_DB_PATH environment variable. The interactive TUI dashboard displays all OTP codes with fuzzy search, and clipboard copying works over SSH.
How do I run a basic cotp example?
Run `cotp` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --database-path _PATH_ do in cotp?
Use a custom database file path.