A secure and privacy-focused command-line tool for two-factor authentication (2FA) and Time-based One-Time Passwords (TOTP).
Installation
Install zbar
- Ubuntu
sudo apt update && sudo apt install -y libzbar-dev
- MacOS
brew install zbar
- If
auth-cmdcannot locate thezbarlibrary after installation, try creating a symbolic link for the zbar shared library: - reference
mkdir ~/lib
ln -s $(brew --prefix zbar)/lib/libzbar.dylib ~/lib/libzbar.dylib
- Windows
- Download the installer from the zbar homepage and follow the instructions provided.
Install Package
pip install auth-cmd
Usage
This tool provides several commands to manage TOTP tokens.
Add a Token
To add a new token by a QRcode
auth add-qr
If you know the secret of a TOTP. You can add a new token by
auth add
Generate a TOTP
To generate a TOTP for a specific token:
auth gen <name>
The generated TOTP will be copied to your clipboard.
Want Faster? Create an alias to speed up the process!
alias gen='auth gen'
# or
alias g='auth gen'
List Tokens
To list all existing tokens:
auth list
Remove a Token
To remove a specific token:
auth remove <name>
License
This project is licensed under the MIT License. See the LICENSE file for details.
Author
Ken Lin (1038790@gmail.com)
Metadata
Release files for auth-cmd 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| auth_cmd-0.4.tar.gz | 7.6 kB | Without provenance | Details for auth_cmd-0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| auth_cmd-0.4-py3-none-any.whl | Python 3 | none | any | Details for auth_cmd-0.4-py3-none-any.whl |
Total release size: 15.9 kB
Release files / auth_cmd-0.4.tar.gz
| Download URL | auth_cmd-0.4.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d4bf3b2ffebfd2614996a2b7045c7719d42fa75341ebbbe0a5bdc62f7744bbd
|
|
BLAKE2b-256 checksum How to use checksums |
6a09852aee526e3825c1cc6b6847e323674ae30a1e3cf0dfc88e4dfd1503a786
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.3
|
Release files / auth_cmd-0.4-py3-none-any.whl
| Download URL | auth_cmd-0.4-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aa432921eafb3505aa5415e30f7f057befec7f4fad11cbec0c06f8efe095f914
|
|
BLAKE2b-256 checksum How to use checksums |
375a11d6d41fa01e49a66222b25c8e3a0ff7e419d9858b909c1471ca8d7984f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.3
|
Security for auth-cmd 0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.