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

Uploaded Source

Built Distribution

auth_cmd-0.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: auth_cmd-0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 fa2e8e2450e78100204ebf95cff3bbf0338a21d0a2a359fdb369128fbc2efad2
MD5 c0be748fca03f246a98806f3efd2955e
BLAKE2b-256 9f07ddcbb93f904e41741aadf62b04752d040582439d87d489656ac80f495c88

See more details on using hashes here.

File details

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

File metadata

  • Download URL: auth_cmd-0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 87f3ac4be85290573dc984b18e878862769fc7fe9f656637c5fb56916a9f792e
MD5 f861437b255bdf03f31bd935b3516724
BLAKE2b-256 16c4f55c523d1775ef0b55f470655fb2c2c6b551a7bc50a3140173843c5ba4f4

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