CLI tool to store TOTP secret keys and generate codes
Project description
tokn
Tokn is a CLI-based TOTP (time-based one-time password) code generator that uses encryption to store secret keys.
Quick Start/Installation
From GitHub
- Clone the GitHub repository or download the code (using the green button)
- Inside the directory, run the following command (you may need to add
python -morpython3 -mbefore it):
pip install -e .
Features
- An encrypted vault file used to store keys
- Secret keys and passwords are never exposed
- Accounts can be added via QR code screenshots, raw codes, or URIs
- CLI is designed to be as ergonomic as possible
Advanced
- The vault is stored in their best location depending on the operating system:
Linux: /home/USER/.local/share/tokn/keys
MacOS: /Users/USER/Library/Application Support/tokn/keys
Windows: C:\Users\USER\AppData\Local\nautrw\tokn/keys
- Commands are split among several files in
tokn/commands, and imported back intotokn/cli.pyto be added under theclicommand group, allowing for commands liketokn add - A
pyproject.tomlfile is used for treating the project as a package, allowing the use ofpip install -e .and uploading to PyPI in the future - The
clifunction intokn/cli.pyis what gets run; it is specified in the[project.scripts]section in the file
Technologies/libraries used
- The
pyotplibrary is used to generate the TOTP codes as specified in RFC 6238 - The
cryptographylibrary, speciallyfernet, is used to encrypt files - Argon2, as implemented by the
cryptographylibrary, is used to generate password hashes that are used as keys forfernet - The
clicklibrary to make it a CLI app - The
zxingcppandopencvlibraries for QR code scanning
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tokn_nautrw-1.0.0.tar.gz.
File metadata
- Download URL: tokn_nautrw-1.0.0.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33dfa1b68985752c50aa4fa2ad238f03e4ab3a4ede35936d55995f851dbefdb6
|
|
| MD5 |
e1f27f1d24ce1d8843df18790c673077
|
|
| BLAKE2b-256 |
14a920cc78d67f3629cab40d5aeae3990632c1e787e5ff279bc6c789bf687fb5
|
File details
Details for the file tokn_nautrw-1.0.0-py3-none-any.whl.
File metadata
- Download URL: tokn_nautrw-1.0.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9a18d1c673b11eb5fdeac73e43149781fa1aa792e40c23d5d0310b1d42de88a
|
|
| MD5 |
c5de5a9bc9b9c0be5bf6b79f480ac0b3
|
|
| BLAKE2b-256 |
2c21f807f1c5337c74ff665c5827d737b1fb9c2201072d93f25040b7697ab353
|