Skip to main content

keypass — minimal secure CLI demo (test only)

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

keypass_cli-0.1.0.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

keypass_cli-0.1.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for keypass_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0487d1e9a88b588d08dfc232dbb23581a1e4c03e82596b5a34d14fca89aedc1a
MD5 a6a9d0084bad40bbee8b9695adfe9bce
BLAKE2b-256 d4f3037c6ec0f91697f815d25401fecbf572c9e14f54eedb2396c1d30deefd57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: keypass_cli-0.1.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.9.6

File hashes

Hashes for keypass_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 990110d2737e82217a99ef1802e20e72fc80a967ecef09620809535d129ebd3c
MD5 a56066991d13df30612d4ff75cb672dd
BLAKE2b-256 3bdfed023ec8b437ed0e4ee27c3e1e9ecb9687662f8bf1e83eea9cec16fb0a76

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