Skip to main content

A secure local password manager with strong encryption

Project description

🔐 Secure Password Manager

A cross-platform vault that stores, audits, and rotates secrets entirely on your device. The application ships with both a rich CLI and a PyQt5 GUI, leverages modern cryptography, and includes official browser extensions for secure credential autofill.

Feature Highlights

  • End-to-end encryption with Fernet (AES-128 + HMAC) backed by PBKDF2-derived master keys and optional Argon2id/scrypt migration hooks.
  • Dual interfaces: interactive terminal workflow (password-manager) and a full desktop client (password-manager-gui).
  • Browser extensions for Chrome/Chromium (Manifest v3) and Firefox (Manifest v2) with secure pairing, credential autofill, and credential saving.
  • Desktop approval system requiring explicit user approval for browser extension credential queries, with "remember this domain" feature and comprehensive audit logging.
  • Browser bridge powered by FastAPI + uvicorn, issuing short-lived tokens to paired browser extensions over a localhost RPC channel with mandatory desktop approval prompts.
  • Security automation including strength analysis, breach checks, duplicate detection, expirations, and actionable remediation guidance.
  • Password history tracking all password changes with rotation metadata (manual, expiry, breach, strength), configurable retention, and detailed audit trails.
  • Backup, restore, and export pipelines with integrity protection, versioned envelopes, and disaster-recovery tooling.
  • Two-factor authentication (TOTP) with automatic clipboard clearing (configurable timeout, default 25 seconds) and planned OS-keyring / hardware token support.
  • Flexible key management with a switchable master-password-derived mode, file-key fallback, and an interactive PBKDF2 benchmarking wizard that tunes iterations (default 390,000) and salt size per device.

Quickstart

Development Mode (Editable Install)

# 1. Clone and navigate to repository
git clone https://github.com/ArcheWizard/password-manager.git
cd password-manager

# 2. Create and activate an isolated environment
python3 -m venv .venv
source .venv/bin/activate

# 3. Install in editable mode (uses .data/ directory)
pip install -e .

# 4. Initialize the database and set a master password
password-manager --init

# 5. Launch CLI or GUI
password-manager
password-manager-gui

Production Mode (Standard Install)

# 1. Install from PyPI (uses XDG directories)
pip install secure-password-manager

# 2. Initialize and launch
password-manager --init
password-manager-gui

Tip:

  • Development mode (pip install -e .): Uses .data/ directory in project root, code changes take effect immediately
  • Production mode (pip install secure-password-manager): Uses XDG directories (~/.local/share, ~/.config, ~/.cache), data persists through updates
  • The first run generates directories containing passwords.db, secret.key, crypto.salt, auth.json, and (if configured) totp_config.json. Keep these files private and back them up using the provided tooling.

Key Management & KDF Tuning

  • Switch modes: In the CLI, visit Settings → Key management mode; in the GUI open the Settings tab and use the "Key Management Mode" card. Switching to the master-password-derived mode removes secret.key and re-encrypts the vault using a key derived each unlock.
  • Benchmark PBKDF2: Run the "KDF tuning wizard" (CLI Settings → KDF tuning wizard, GUI Settings tab). The wizard measures the current CPU, recommends an iteration count for the target unlock time, and optionally rotates the salt size.
  • Apply new parameters: When accepting the recommendation, the tool re-hashes auth.json, re-wraps any protected secret.key, and—if password-derived mode is active—re-encrypts every entry so the new parameters take effect immediately.
  • Configuration storage: Selected mode, iteration targets, and salt metadata live in settings.json and crypto.salt. Backups include these files so restored environments preserve your hardening choices.

Browser Extensions

Official browser extensions for Chrome/Chromium and Firefox provide seamless credential autofill and secure credential storage directly from your web browser.

Features

  • Secure Pairing: Pair with desktop app using 6-digit codes
  • Auto-Fill: Click lock icon on password fields to fill credentials
  • Save Credentials: Automatically prompts to save new logins
  • Desktop Approval: All credential access requires explicit approval in desktop app
  • Multi-Credential Selection: Choose from multiple entries when available
  • Token-Based Auth: Secure communication with browser fingerprinting
  • Multi-Browser: Chrome (Manifest v3) and Firefox (Manifest v2) support

Installation

Build and Load Extension:

cd browser-extension
./build-chrome.sh      # For Chrome/Chromium
./build-firefox.sh     # For Firefox
./build-all.sh         # Build both

Chrome: Load unpacked extension from browser-extension/build/chrome/ at chrome://extensions/

Firefox: Load temporary add-on from browser-extension/build/firefox/manifest.json at about:debugging

Usage

  1. Enable Browser Bridge: In desktop app, enable Browser Bridge in Settings
  2. Pair Extension: Click extension icon → "Pair with Desktop App" → Enter 6-digit code from desktop
  3. Auto-Fill: Visit login page → Click 🔒 lock icon on password field → Approve in desktop app
  4. Save: Fill form manually → Submit → Click "Save" in save prompt → Approve in desktop app

See browser-extension/README.md for detailed instructions.

See browser-extension/README.md for full documentation, troubleshooting, and API details.

Browser Bridge (Desktop API)

The local browser bridge service unlocks auto-fill and audit integrations with browser extensions. It is disabled by default; enable it from either interface:

  1. CLISettings > Browser Bridge to toggle auto-start, launch/stop the service, and manage tokens.
  2. GUISettings tab → "Browser Bridge" panel to flip the enable checkbox, monitor status, and generate pairing codes.

Once enabled, the FastAPI service binds to http://127.0.0.1:43110 (configurable via settings.json) and exposes the endpoints documented in docs/browser-extension-ipc.md. Pair new extensions by generating a 6-digit code; issued tokens are stored in browser_bridge_tokens.json under the config directory and can be revoked at any time from the same menus. When the feature is marked enabled, the CLI/GUI automatically starts the service on launch and shuts it down cleanly on exit.

Documentation Map

Audience Read This
Everyone docs/README.md
New users docs/getting-started.md, docs/user-manual.md
Security reviewers docs/security-whitepaper.md
Developers docs/architecture-reference.md, docs/contributing.md
Operators & SRE docs/operations-runbook.md, docs/background-jobs-observability.md
Builders docs/build-release-handbook.md
Future integrations docs/browser-extension-ipc.md
Roadmap docs/roadmap.md & CHANGELOG.md

Support & Feedback

  • File issues or feature requests via GitHub.
  • Use the logs/password_manager.log file along with docs/operations-runbook.md when reporting problems.
  • Security disclosures should follow the responsible reporting process described in docs/security-whitepaper.md.

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

secure_password_manager-1.10.3.tar.gz (92.4 kB view details)

Uploaded Source

Built Distribution

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

secure_password_manager-1.10.3-py3-none-any.whl (79.9 kB view details)

Uploaded Python 3

File details

Details for the file secure_password_manager-1.10.3.tar.gz.

File metadata

File hashes

Hashes for secure_password_manager-1.10.3.tar.gz
Algorithm Hash digest
SHA256 88a041679572461f932031e0eaf27bcf69aaa6195af0897f71a6973e5d5fa2ff
MD5 50d625eb109f0354822a4855e9e2e789
BLAKE2b-256 66a2f600ea4bae7963dea3b3973dd9e66f7fca9df8ce452ce2494b5d9c0e9bb6

See more details on using hashes here.

File details

Details for the file secure_password_manager-1.10.3-py3-none-any.whl.

File metadata

File hashes

Hashes for secure_password_manager-1.10.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cab947eaaf3d7b3ebacb03b8812090db3f1f1e1e7dffbf7eabfadc5efc2f3c08
MD5 ed88c088f45c5f96ecdb4037521e8878
BLAKE2b-256 cdabdb8c2ed9dea394d0de9886bd7251f180037bed577580e4abf1a140ba488e

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