A gpg diff utility
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
--secretflag). - Provides a rich text-based user interface (TUI) using the
richlibrary 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 .
This requires Python 3.7 or higher. The following packages are required:
richdifflibargparseresubprocesstempfile
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
License
MIT License
Copyright (c) [Your Name or Organization]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gpgdiff-0.1.1.tar.gz.
File metadata
- Download URL: gpgdiff-0.1.1.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a92e7a4a43177a24a5087988462746b1493c3f926883593d6ac59b3bd98152a0
|
|
| MD5 |
205e562855715282ca7bcb53753a1dfb
|
|
| BLAKE2b-256 |
1aa2b45d34f51d86e7cad9cab0695a3c8655ec2cc6285b1b26d8eab5a501862e
|
File details
Details for the file gpgdiff-0.1.1-py3-none-any.whl.
File metadata
- Download URL: gpgdiff-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25b97b80f2633fc289a50054bcf6e1dad8405767b3d3a260aed32c09dc0e0343
|
|
| MD5 |
fbbcc08a27af75f8d3ef9e9dd4fa3ceb
|
|
| BLAKE2b-256 |
b65eac9f68b39a291e556b94c08300bab2efae28a0f9ae5fdc60f433f92425b8
|