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 keypass-secure-cli

Step 2: Initialize & Use (Zero Setup!)

keypass init
keypass add-cred github_token
keypass get-cred github_token
keypass delete-cred github_token

🔑 Master Key Management (Multi-PC Access)

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

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

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

# Restore everything on another PC
keypass 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.1.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.1.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: passkey_cli-0.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 d6404efb98d504cb4b30fff2d9e5180d3e44acce72b15301c41ea18363c098f0
MD5 bae9d0b00c441656ac93043abddb097f
BLAKE2b-256 7cf09ae991485a6d89b029954a4cab46c6c9da8dea134aad23b3028d0342ad0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: passkey_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.8 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a73c2f25b9c58e9ed006e94d3bd1f3b156b87c6ffba9a852cadf8fd59ff551a
MD5 b81418d430ef3f26ad2476b950993f96
BLAKE2b-256 3ebecaeafded04990bbc4a9321115c2315adef2b9b649ef9b6c223018968bf22

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