Skip to main content

tufa

A command-line tool for managing TOTP/HOTP credentials using the Mac OS keychain.

Installation

To install the latest released version from PyPI:

pip install -U tufa

You can also check out the repository and install from source:

pip install -U .

Usage

Use the add command to add a new credential. The secret can be passed into stdin or provided interactively via a terminal prompt.

tufa add --name example --totp

You can use the addurl command to add a credential from a URL. This example uses ZBar to extract a URL from a QR code and store the information using tufa:

zbarimg qr.png | tufa addurl --name example

The getotp command generates a one-time password for a credential:

tufa getotp --name example

To export a credential you can use the geturl command. This example generates a QR code for a credential using libqrencode.

tufa geturl --name example | qrencode -o qr.png

For full command-line documentation, see tufa --help.

Configuration

You can set the following environment variables to configure tufa:

  • TUFA_DB_PATH: Path tufa's credential metadata database. The default location is ~/.tufa.sqlite3
  • TUFA_DEFAULT_KEYCHAIN: Keychain to use when adding credentials, if not specified via command-line flags.

Download files

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

Source Distribution

tufa-0.2.0.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tufa-0.2.0-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file tufa-0.2.0.tar.gz.

File metadata

  • Download URL: tufa-0.2.0.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for tufa-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ec13c73c153b362c6e32c17336a11d79989bea2cad3c82e557433a1ab39a6570
MD5 f9cf31ea2728548c7e4268acbce39d0d
BLAKE2b-256 c7c7776a8a5635ca6b2bf02126d7d5faaeef34f058bcd7a9b0c8ccea53f821f9

See more details on using hashes here.

File details

Details for the file tufa-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: tufa-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for tufa-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34ace4704818bb097f2e356737b9bcd4df7b24cce5a1fe40ecd748fbe61f1faa
MD5 356c54013f343c0861b3bf8ccc8d792d
BLAKE2b-256 46e8a7a140ef0ccb785c2c8a5bba1f3ce3d43b6c506e51b30c746aa8cb7b4560

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page