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 PGP encryption, decryption, signing, and verification on files and strings.
It’s built with python-gnupg and 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.2.tar.gz (16.0 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.2-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mpgkit-1.0.2.tar.gz
  • Upload date:
  • Size: 16.0 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.2.tar.gz
Algorithm Hash digest
SHA256 9d7885fdf7f51fc6dabd2214122e78542753c2be43314f6d0de75a7585486de6
MD5 95fdf15e0c6842c1eee5a1a39d3be90f
BLAKE2b-256 395e572fd674759f24e56deba59243bd56c4ebf93ba264142d16d5e4cf3e88a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mpgkit-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aa91c8dbe61bda6ca946b1561a1437ee89ad509ded02d81099954de116f40e4c
MD5 a026705170abeaeeb6daadba71eb8505
BLAKE2b-256 75a14cb32e0e2fcc5dce82bd76896e0c575d8be6171521ed7985fdedbabcdd87

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