A light weight secure CLI tool for storing, retrieving, deleting, and generating encrypted passwords.
Project description
CryptKnox 🔐
CryptKnox is a lightweight CLI-based encrypted password manager written in Python. It allows you to securely store, retrieve, delete, and generate passwords using a single master password.
All stored credentials are encrypted locally using AES encryption, ensuring your secrets remain protected.
Features
- 🔐 AES Encryption for secure password storage
- 🗂 Store multiple accounts per service
- 🔍 Retrieve specific accounts, services, or all credentials
- ❌ Delete individual entries, services, or entire vault
- 🔑 Generate strong random passwords
- 💻 Simple CLI interface
- 📦 Installable via PyPI
Installation
Install from PyPI:
pip install cryptknox
After installation you can run:
cryptknox --help
Usage
cryptknox --operation|-o [store|retrieve|delete|generate] [OPTIONS]
Operations
Store Credentials
Store a password for a service.
cryptknox -o store -m MySecretPassword -s gmail -u user@gmail.com -p mypassword
Options:
| Option | Description |
|---|---|
--operation, -o |
Operation (store) |
--master-password, -m |
Master password used for encryption |
--service, -s |
Service name (example: gmail) |
--username, -u |
Username for the service |
--password, -p |
Password to store |
Retrieve Credentials
Retrieve stored passwords based on scope.
Retrieve a specific account:
cryptknox -o retrieve -m MySecretPassword -s gmail -u user@gmail.com
Retrieve all accounts under a service:
cryptknox -o retrieve -m MySecretPassword -s gmail
Retrieve all services:
cryptknox -o retrieve -m MySecretPassword -s all
Behavior:
-s all→ retrieves entire vault-s <service>→ retrieves all usernames under that service-s <service> -u <username>→ retrieves only that account
Delete Credentials
Delete stored credentials based on scope.
Delete a specific account:
cryptknox -o delete -m MySecretPassword -s gmail -u user@gmail.com
Delete all accounts under a service:
cryptknox -o delete -m MySecretPassword -s gmail
Delete entire vault:
cryptknox -o delete -m MySecretPassword -s all
Behavior:
-s all→ deletes entire vault (confirmation required)-s <service>→ deletes all usernames under that service-s <service> -u <username>→ deletes only that account
Generate Secure Password
Generate a random secure password.
cryptknox -o generate -l 12
Options:
| Option | Description |
|---|---|
--length, -l |
Length of generated password (must be greater than 4) |
The generated password includes:
- uppercase letters
- lowercase letters
- numbers
- special characters
Examples
Store credentials:
cryptknox -o store -m MySecretPassword -s github -u myuser -p mypassword
Retrieve specific account:
cryptknox -o retrieve -m MySecretPassword -s github -u myuser
Retrieve all credentials:
cryptknox -o retrieve -m MySecretPassword -s all
Generate a strong password:
cryptknox -o generate -l 16
Delete specific account:
cryptknox -o delete -m MySecretPassword -s github -u myuser
Delete service:
cryptknox -o delete -m MySecretPassword -s github
Delete entire vault:
cryptknox -o delete -m MySecretPassword -s all
Security Notes
- All credentials are encrypted before being stored
- Only the master password can decrypt the vault
- The master password is never stored
⚠️ If the master password is lost, the vault cannot be recovered.
Requirements
- Python 3.9+
License
MIT License
Author
Developed by Sreejith
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 cryptknox-0.2.8.tar.gz.
File metadata
- Download URL: cryptknox-0.2.8.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c73d95b47b207ba09762ab3b0ec77d01dad31446394c7beb1af7c275a84e92cd
|
|
| MD5 |
fd1d3a1ee77c3a17bad8798275a2cc4b
|
|
| BLAKE2b-256 |
74c0870177f8e685485b213fd046d7004a28b6ddb8350375f12c95387efb75c6
|
File details
Details for the file cryptknox-0.2.8-py3-none-any.whl.
File metadata
- Download URL: cryptknox-0.2.8-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6f3cbc4b05cce2963bd624b8973cd9db3d383eeb70e2bc352d8aaa62b662e20
|
|
| MD5 |
86d79c197b857d256d269cc4ba1f6cac
|
|
| BLAKE2b-256 |
33b4c9d959c5fb9e8c4e083a994daba1b938e40e0f5712a6a534edcc0a362fa8
|