Skip to main content

mPGkit - Matel's PGP toolkit

Project description

mPGkit 🔑

mPGkit (Matel’s PGP toolkit) is a lightweight, Python-powered toolkit for performing OpenPGP-compatible encryption, decryption, signing, and verification on files and strings. It’s built on top of python-gnupg, which interfaces with GnuPG, and is designed to feel like a natural UNIX-style CLI tool.


✨ Features

  • 🔒 Encrypt & decrypt files and strings with PGP
  • 🖊️ Sign and verify messages or documents
  • 🔑 Manage keys (import, export, list)
  • 🛠️ Easy CLI commands (mpgkit enc …, mpgkit dec …)

📦 Installation

# Using pipx (recommended for CLI isolation)
pipx install git+https://gitlab.com/matelowy/mpgkit.git # Development version
pipx install mpgkit # Stable version

# Or using pip
pip install mpgkit # Stable version
pip install git+https://gitlab.com/matelowy/mpgkit.git # Development version

💡 Usage Examples

List all keys in your keyring

mpgkit list

Import a key

mpgkit import mykey.asc

Export a key

# Export public key
mpgkit export -p 8D91D7XXXXXXXX77509C0895E449YYYYYYYY9D2A -o mypublic.asc

# Export private key (requires passphrase)
mpgkit export -s 8D91D7XXXXXXXX77509C0895E449YYYYYYYY9D2A -o myprivate.asc -p "mySecretPassphrase"

Encrypt a file or string

# Encrypt a string
mpgkit enc "Hello world" -k recipient_pubkey.asc

# Encrypt a file
mpgkit enc /path/to/file.txt -k recipient_pubkey.asc -o encrypted_file.gpg

Decrypt a file or string

# Decrypt a string
mpgkit dec "encrypted string" -k my_privatekey.asc

# Decrypt a file
mpgkit dec /path/to/encrypted_file.gpg -k my_privatekey.asc -o decrypted_file.txt

📜 License

mPGkit is licensed under the GPL-3.0 License. You are free to use, modify, and redistribute it, but derivative projects must also be open-source and credit Matel.


🤝 Contributing

Contributions are welcome!

  1. Fork the repo
  2. Make changes
  3. Submit a merge request

🌐 Contact

Matel – GitLab

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

mpgkit-1.0.3.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

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

mpgkit-1.0.3-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file mpgkit-1.0.3.tar.gz.

File metadata

  • Download URL: mpgkit-1.0.3.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mpgkit-1.0.3.tar.gz
Algorithm Hash digest
SHA256 467ba183cd9ca9c9a42a480c54f6e0b0b89b6ca519e58cb3318341bc8b3a5122
MD5 3cab041debbc36b00aa24f0a12e1ed42
BLAKE2b-256 1449218022d915c8eca71c10eaa8ec7498cbb2db02ee0140250b5deccb31cde3

See more details on using hashes here.

File details

Details for the file mpgkit-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: mpgkit-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mpgkit-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 810eea197f150031602e47f928db61365e9e9cc4145e2d4e2d352aaa1dfde3be
MD5 9a5476dcd4bc09680283c06bd1f00bc8
BLAKE2b-256 904c40d8eab2943a9ee4aa64054690536d4fcf3708267684ad62603dc9d375cc

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