Skip to main content

A 2FA/TOTP authentication tool

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

auth_cmd-0.4.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

auth_cmd-0.4-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file auth_cmd-0.4.tar.gz.

File metadata

  • Download URL: auth_cmd-0.4.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.3

File hashes

Hashes for auth_cmd-0.4.tar.gz
Algorithm Hash digest
SHA256 6d4bf3b2ffebfd2614996a2b7045c7719d42fa75341ebbbe0a5bdc62f7744bbd
MD5 cd90919694b17f4878a49b13e8666956
BLAKE2b-256 6a09852aee526e3825c1cc6b6847e323674ae30a1e3cf0dfc88e4dfd1503a786

See more details on using hashes here.

File details

Details for the file auth_cmd-0.4-py3-none-any.whl.

File metadata

  • Download URL: auth_cmd-0.4-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.3

File hashes

Hashes for auth_cmd-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 aa432921eafb3505aa5415e30f7f057befec7f4fad11cbec0c06f8efe095f914
MD5 82f6b993ffb70da06bcf6b1eb4bb1035
BLAKE2b-256 375a11d6d41fa01e49a66222b25c8e3a0ff7e419d9858b909c1471ca8d7984f4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page