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.3.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: auth_cmd-0.3.tar.gz
  • Upload date:
  • Size: 7.5 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.3.tar.gz
Algorithm Hash digest
SHA256 591992479b216af7369b0071d5c75f9e6ffe6d87047a1b080c97e33d04691973
MD5 d8295de9953c3ef1d86debe005e08078
BLAKE2b-256 fc2fd410e99901952fb415a01c90ce278a26f2cd8baf67534270602c1f199fb8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: auth_cmd-0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0f1f06ddfe76008350f21a4948cd24d4ede2a710ad2853768b4798e953b6bb17
MD5 7a7b4adbc87fb51ea0f3b6a405fb42f1
BLAKE2b-256 8ee690eeff05abf950143e2fb3ea4a736c025d2bfe3ed5ca9847488f480c6087

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