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
Use pip to install the package in your desired environment:
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tufa-0.1.0.tar.gz
.
File metadata
- Download URL: tufa-0.1.0.tar.gz
- Upload date:
- Size: 10.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19b478072d4fe1a2979613e6a241dd2dd32b7dddec64afb22c25b947c1fb0117 |
|
MD5 | 223aa6a04717e9e97a20b9b89356423d |
|
BLAKE2b-256 | 9836674b2234fdaf63782eea132adcc1a58cf53729e84283d0c39e5b4404afbd |
File details
Details for the file tufa-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: tufa-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | faf721c6126c216dd42e71ad713572ec7a23f0c4a6b64acbade26c17073ee619 |
|
MD5 | a5c5449a92961b9a047976de67e51d6f |
|
BLAKE2b-256 | 8ae8a3bad917a9bab391cf0761574ee6f8ae062cc774a1e210be58bd30aa3db8 |