PGPym is a fork of PGPy with additional maintenance fixes. PGPy is Python library for implementing Pretty Good Privacy into Python programs, conforming to the OpenPGP specification per RFC 4880. PGPym installs with the same import package name, and is backwards import compatible with the original package.
Currently, PGPy can load keys and signatures of all kinds in both ASCII armored and binary formats.
It can create and verify RSA, DSA, and ECDSA signatures, at the moment. It can also encrypt and decrypt messages using RSA and ECDH.
The following changes are specific to PGPym:
- patched to be compatible with Python 3.13.
- support setting key expiration dates for PGP subkeys.
To install PGPym, simply:
$ pip install PGPymPGPy Documentation on Read the Docs
Please report any bugs found on the issue tracker
You can also join #pgpy on Freenode to ask questions or get involved
Python >= 3.6
Tested with: 3.14, 3.13, 3.12, 3.11, 3.10
BSD 3-Clause licensed. See the bundled LICENSE file for more details.