A simple 2-factor-authentication client
Project description
vAUTH
vAUTH v0.0.6! This 2FA command-line tool is designed to help you manage your accounts and services through Time-based One-Time Passwords (TOTP). You can register, login, recover accounts, and manage services with ease. It also includes a built-in shell to interact with your services securely and efficiently.
Table of Contents
Encryption
Features
- User Authentication: Register, login, recover, and remove users.
- Service Management: Add, modify, remove services and generate Time-based OTPs.
- TOTP Integration: Use a TOTP app like Google Authenticator with QR codes.
- Shell Interface: Interactive shell for easy service management.
- Real-Time OTP Display: Continuously display OTPs with time remaining until refresh.
Installation
Clone the repository and install the dependencies:
pip install vauth
Usage
The vAUTH CLI supports a variety of commands for user and service management. After installation, you can start using the tool with the following commands.
Registering a User
To register a new user:
vauth register -u <user_id>
You will receive confirmation and recovery codes upon successful registration.
Logging In
To log in to the vAUTH CLI tool:
vauth login -u <user_id>
This will start an interactive shell where you can manage your services.
Recovering an Account
If you need to recover your account:
vauth recover -u <user_id>
Removing an Account
To remove a user account:
vauth remove -u <user_id>
Shell Commands
Once you're logged in, the vAUTH Shell will allow you to interact with your services. Here are the available commands:
Add Service
add_service <service> <username> <seed>
Adds a new service with the specified username and seed.
Show Service
show_service <service> <username>
Displays the current OTP for the service along with the time remaining. It will also continuously update the OTP every 30 seconds until you press 'ESC' to quit. Here's how the output will look:
Service: <service_name>
Username: <username>
OTP: <current_otp>
█████████████████████████████░░27s
Press 'ESC' to quit
Show QR Code
show_qr <service> <username>
Displays a QR code for a service, which can be scanned using a TOTP app like Google Authenticator. It shows the service, username, and an ASCII QR code for easy scanning.
Remove Service
remove_service <service> <username>
Removes the specified service from your account.
Modify Service
modify_service <service> <username> <'username'/'seed'> <new_value>
Allows you to modify either the username or the seed of a service. You can specify whether you want to update the username or the seed and provide the new value.
Exit
You can exit the shell at any time by entering:
exit
Keyboard Shortcuts
- ESC: Quit the OTP display.
Example Session
Here's a sample session of how the tool works:
-
Register a User:
vauth register -u user123
Output:
vAUTH> Registration Successful Recovery Codes: ['ABCD1234', 'WXYZ5678', ...]
-
Login and Use the Shell:
vauth login -u user123
This will drop you into the interactive shell:
$$$$$$\ $$\ $$\ $$$$$$$$\ $$\ $$\ $$ __$$\ $$ | $$ |\__$$ __|$$ | $$ | $$\ $$\ $$ / $$ |$$ | $$ | $$ | $$ | $$ | \$$\ $$ |$$$$$$$$ |$$ | $$ | $$ | $$$$$$$$ | \$$\$$ / $$ __$$ |$$ | $$ | $$ | $$ __$$ | \$$$ / $$ | $$ |$$ | $$ | $$ | $$ | $$ | \$ / $$ | $$ |\$$$$$$ | $$ | $$ | $$ | \_/ \__| \__| \______/ \__| \__| \__| Welcome to vAUTH CLI TOOL v0.0.6. Enter 'exit' to exit at any time.
-
Add a Service:
vAUTH> add_service Google user123 ABCDEF123456
-
Show OTP for a Service:
vAUTH> show_service Google user123
Output:
Service: Google Username: user123 OTP: 123456 ████████████████████████████░ 5s Press 'ESC' to quit
-
Exit the Shell:
vAUTH> exit
License
This project is licensed under the MIT License - see the LICENSE file for details.
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 Distributions
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 vauth-0.0.6-8-py3-none-any.whl.
File metadata
- Download URL: vauth-0.0.6-8-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5099ec89463685301ea9b3b86d69737c05e555807c7a700ecd79def3711efe89
|
|
| MD5 |
aec6b00439ea7821301959a51cd2269b
|
|
| BLAKE2b-256 |
5d2d2eaf9021bf9479de8727940ab12fc33ca750aeee75380c810ab471658b5b
|