Skip to main content

Secure CLI-based password manager with encryption and MongoDB support

Project description

 ██████╗ ██████╗  █████╗ ███████╗███████╗
██╔═══██╗██╔══██╗██╔══██╗██╔════╝██╔════╝
██║   ██║██████╔╝███████║███████╗███████╗
██║▄▄ ██║██╔═══╝ ██╔══██║╚════██║╚════██║
╚██████╔╝██║     ██║  ██║███████║███████║
 ╚══▀▀═╝ ╚═╝     ╚═╝  ╚═╝╚══════╝╚══════╝

🔐 QPass — Secure CLI Password Manager

Encrypt. Store. Retrieve. Sleep easy.

Python MongoDB License: MIT PyPI Cryptography


✨ What is QPass?

QPass is a lightweight, terminal-first password manager that keeps your credentials safe using industry-standard encryption — all stored securely in MongoDB. No browser plugins. No cloud accounts. Just you, your terminal, and your encrypted vault.

💡 Built for developers and power users who live in the terminal.


🚀 Features

Feature Description
🔒 Military-grade encryption PBKDF2 key derivation + Fernet symmetric encryption
🖥️ Interactive CLI Clean, intuitive command-line interface
🔑 Session-based auth Login once per session — no repeated prompts
🗄️ MongoDB storage Scalable, reliable backend for your vault
🧩 Simple commands Minimal syntax, maximum productivity
🌍 Cross-platform Works on Linux, macOS, and Windows

📦 Installation

pip install quick-pass

Requires Python 3.8+ and a running MongoDB instance (local or Atlas).


⚡ Quick Start

# Launch QPass
qpass

# Register / login to your vault
ulogin

# Add a credential
add github MyS3cur3P@ss!

# Retrieve it anytime
get_site github

# View your entire vault
get_vault

# Logout safely
ulogout

🛠️ Commands

┌────────────────────────────────────────────────────────┐
│                    QPASS COMMANDS                      │
├──────────────────────┬─────────────────────────────────┤
│  ulogin              │  Authenticate into your vault   │
│  ulogout             │  End your current session       │
│  add <site> <pass>   │  Save encrypted credentials     │
│  delete <site>       │  Remove a saved entry           │
│  get_vault           │  List all stored sites          │
│  get_site <site>     │  Retrieve a specific password   │
└──────────────────────┴─────────────────────────────────┘

🔐 How Encryption Works

QPass uses a two-layer security model:

Master Password
      │
      ▼
  PBKDF2-HMAC-SHA256
  (100,000 iterations + salt)
      │
      ▼
  256-bit Derived Key
      │
      ▼
  Fernet Symmetric Encryption
      │
      ▼
  Encrypted Ciphertext → MongoDB
  1. Your master password is never stored — only a salted hash.
  2. Every password is encrypted using Fernet before touching the database.
  3. Decryption only happens in memory, during an active session.

🧱 Tech Stack

┌─────────────────────────────────────────┐
│  Language     →  Python 3.8+            │
│  Database     →  MongoDB                │
│  Encryption   →  cryptography (Fernet)  │
│  CLI          →  cmd / argparse         │
│  Auth         →  PBKDF2-HMAC-SHA256     │
└─────────────────────────────────────────┘

📁 Project Structure

qpass/
├── qpass/
│   ├── __init__.py
│   ├── cli.py          # CLI entry point & command loop
│   ├── auth.py         # Session & user authentication
│   ├── crypto.py       # Encryption / decryption logic
│   ├── db.py           # MongoDB connection & queries
│   └── vault.py        # Vault operations (add/get/delete)
├── README.md
├── LICENSE
├── setup.py / pyproject.toml
└── requirements.txt

🔧 Requirements

pymongo
cryptography

Install them manually:

pip install pymongo cryptography

🤝 Contributing

Contributions are welcome! Feel free to:

  1. 🍴 Fork the repository
  2. 🌿 Create a feature branch: git checkout -b feature/cool-thing
  3. 💾 Commit your changes: git commit -m "Add cool thing"
  4. 📤 Push and open a Pull Request

📄 License

This project is licensed under the MIT License — see the LICENSE file for details.


Made with 🔐 and ☕ by Aditya

"Security is not a product, but a process." — Bruce Schneier

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quick_pass-0.1.0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quick_pass-0.1.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file quick_pass-0.1.0.tar.gz.

File metadata

  • Download URL: quick_pass-0.1.0.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for quick_pass-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7306f7804fb5d5621f98c89d46430319722216e69effbf413ccdf043de8b10d1
MD5 7d6320bbd3c5729da94d0c6d7ade2a5b
BLAKE2b-256 8065a6e6cde14d0956ec6c436a8d0c55f26b18ab21b106f4ea6dbd772059dc88

See more details on using hashes here.

File details

Details for the file quick_pass-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: quick_pass-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for quick_pass-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c9616e5d033960c1ed5708fbb5e4358c4aac56c7a81ee33e038a8ef7a232fa5
MD5 fb44512934415c5395ec88c9fa17a7df
BLAKE2b-256 e901dabafe3d3dac2cb8b6fc48cb89bf13fef54178e3cd1f846b1fcbd05fa034

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page