Skip to main content

A secure CLI password manager connected to MongoDB

Project description

keypass — minimal secure CLI demo (test only)

This is a small demo CLI you can install locally and use to test encrypted storage with MongoDB.

NOT production-ready. Intended for quick testing.

🚀 Quick Start for Users

Step 1: Install

pip install passkey-secure-cli

Step 2: Initialize & Use (Zero Setup!)

passkey init
passkey add-cred github_token
passkey get-cred github_token
passkey delete-cred github_token

🔑 Master Key Management (Multi-PC Access)

# Export master key to use on other PCs
passkey export-master-key my-key.txt

# Import master key on another PC
passkey import-master-key my-key.txt

# Complete backup (credentials + master key)
passkey backup-cred my-backup.json

# Restore everything on another PC
passkey restore-cred my-backup.json

That's it! The app automatically connects to our secure cloud database.

🔧 Advanced Setup (Optional)

Use Your Own Atlas Database:

export MONGO_ATLAS_USER="your_username"
export MONGO_ATLAS_PASS="your_password"
export MONGO_ATLAS_CLUSTER="your_cluster_name"

Use Local MongoDB:

brew install mongodb-community  # macOS
brew services start mongodb-community

🎯 Quick Setup Script

# Run the interactive setup script
./quick_setup.sh

Warnings & next steps

This demo stores secrets in MongoDB encrypted with a symmetric key stored in your OS keyring. For production:

  • Use KMS (AWS KMS / GCP KMS / HashiCorp Vault) or a secure HSM.
  • Add authentication and audit logging.
  • Rotate keys, protect logs, and never print secrets in plain text.

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

passkey_cli-0.2.0.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

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

passkey_cli-0.2.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file passkey_cli-0.2.0.tar.gz.

File metadata

  • Download URL: passkey_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for passkey_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 772b82e9399af4e7570f0609e3925bf9486d0394be4ccc2e9a9b6896f0f30245
MD5 746e23416cf14da0c1d73a805b468c26
BLAKE2b-256 7e26b47fd2f47f5d56ee848871d32b7f16de6d1e3f3356287b9fe3dfc38f18fd

See more details on using hashes here.

File details

Details for the file passkey_cli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: passkey_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for passkey_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bff967df21c859b8afd4d7116645913ebea71b31d6485f10d9d91e2149271eba
MD5 816427e1867609ffdfce404895b948b4
BLAKE2b-256 afcb3a0212833617e5e0d8ca75f9830e4df13367b071425a98c7041bcae84149

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