Skip to main content

No project description provided

Project description

gpgdiff

A simple command-line utility for comparing two GPG keys.

Usage

gpgdiff key1 key2 [options]

Arguments:

  • key1: The ID of the first GPG key.
  • key2: The ID of the second GPG key.

Options:

  • --secret: Compare private keys (requires appropriate permissions).
  • --deep-analysis: Perform a deeper analysis, including fingerprint comparison and packet analysis.

Features

  • Compares two GPG keys using a text-based diff, highlighting differences clearly.
  • Supports comparison of both public and private keys (using the --secret flag).
  • Provides a rich text-based user interface (TUI) using the rich library for enhanced readability.
  • Offers a deep analysis option (--deep-analysis) for more detailed comparison, including:
    • Fingerprint verification to confirm cryptographic identity.
    • Packet structure analysis to compare the components of the keys.
  • Handles errors gracefully, providing informative messages to the user.
  • Uses temporary files to store exported keys, ensuring data security and preventing accidental modification of original keys.

Installation

Install using pip:

pip install gpgdiff

This requires Python 3.7 or higher. The following packages are required:

  • rich
  • difflib
  • argparse
  • re
  • subprocess
  • tempfile

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

GPL License

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

gpgdiff-0.1.3.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

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

gpgdiff-0.1.3-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file gpgdiff-0.1.3.tar.gz.

File metadata

  • Download URL: gpgdiff-0.1.3.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for gpgdiff-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e22c25b7866c7a1f0d072ecf4ee949d5cfa700fe6abc335bf0f585770ba71a4c
MD5 528682379871a2536f99a0938085c805
BLAKE2b-256 63c570cce622a39a4f2cb1fc6172e43efc637749f2b56c6cd78b48c734f8bbeb

See more details on using hashes here.

File details

Details for the file gpgdiff-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: gpgdiff-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for gpgdiff-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 49a2102b23a3d42d65481acf231c4c3a5e7eab88690d890b1f92f03eda8d8d02
MD5 7d40406f1334ca622d996074d26742a8
BLAKE2b-256 a421e5c3755ead767197b62e52f1114a189e459efcb8b0ee0471241085c8afdc

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