A simple, lightweight vault implemented in pure Python for securely storing and retrieving secrets in light-duty applications.
Project description
MiniVault
Description
A simple, lightweight vault implemented in pure Python, using RC6, for securely storing and retrieving secrets in light-duty applications.
Requirements
This package require:
- python3
- python3 Standard Library
- RC6Encryption
Installation
Pip
python3 -m pip install MiniVault
Git
git clone "https://github.com/mauricelambert/MiniVault.git"
cd "MiniVault"
python3 -m pip install .
Wget
wget https://github.com/mauricelambert/MiniVault/archive/refs/heads/main.zip
unzip main.zip
cd MiniVault-main
python3 -m pip install .
cURL
curl -O https://github.com/mauricelambert/MiniVault/archive/refs/heads/main.zip
unzip main.zip
cd MiniVault-main
python3 -m pip install .
Usages
Python script
from MiniVault import *
from getpass import getpass
category = "finance"
role = "db-admin"
username = "alice"
password = "S3cureP@ss!"
master_password = getpass()
vault = PasswordVault.start(
master_password=master_password, root_dir="my_vault"
) # master password required to open vault
vault.create_new_category("finance", master_password) # master password required to create new category
vault.put_credentials(category, role, username, password) # master password not required to add new password
vault.put_credentials(category, "db-system", username, password)
creds = vault.get_credentials(category, role)
print("Username:", creds["username"] + ",", "Password:", creds["password"])
assert creds["username"] == username, "Invalid username"
assert creds["password"] == password, "Invalid password"
Links
License
Licensed under the GPL, version 3.
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
minivault-0.0.1.tar.gz
(23.7 kB
view details)
File details
Details for the file minivault-0.0.1.tar.gz.
File metadata
- Download URL: minivault-0.0.1.tar.gz
- Upload date:
- Size: 23.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0f2315183403166c4ba3112356d3209076e5bfc0d36610660c2b1d278fd4ec0
|
|
| MD5 |
222aa48720b15648f9e961a28b82f9c7
|
|
| BLAKE2b-256 |
581eea17b9ccc1db475f8054f91d050f193ac47c0af9c9df2b44ad374ef4dfc5
|