Skip to main content

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

Project description

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.

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

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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