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.1.1.tar.gz (10.3 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.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: passkey_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 10.3 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.1.tar.gz
Algorithm Hash digest
SHA256 038be0406ae38bde722adbf9991a5efa3717f72fe02831df8e46bd208e4e7e48
MD5 919ca5e3a653b7a085170d6e87269060
BLAKE2b-256 4527d3b33fec2afbdf35060aefd21fa7c5d1d736cabb90874aa410131e84442e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: passkey_cli-0.1.1-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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b2c656cd34ba0cfc9f7fbe34362a672e0aca081473869bffc222be4884688629
MD5 60b7c17b2f5454b3c77bb3fbad2a5914
BLAKE2b-256 f065b722d4008f74b43839767b3d09990dbf94e46b2d95fa8579347da2c7a0ca

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