Skip to main content

A secure and privacy-focused command-line tool for two-factor authentication (2FA) and Time-based One-Time Passwords (TOTP).

[!IMPORTANT]
To ensure the safety of your authentication data, please use auth-cmd only on a secure, private computer.

Installation

Install zbar

  • Ubuntu
  sudo apt update && sudo apt install -y libzbar-dev
  • MacOS
  brew install zbar
  • If auth-cmd cannot locate the zbar library 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)

Buy Me A Coffee

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)

Source distribution for auth-cmd 0.4
File Size Uploaded
auth_cmd-0.4.tar.gz 7.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for auth-cmd 0.4
File Interpreter ABI Platform
auth_cmd-0.4-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.4 This release

2 release files

0.3

2 release files

0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page