PGPy is a Python library for implementing Pretty Good Privacy into Python programs, conforming to the OpenPGP specification per RFC 4880.
PGPy13 is a (hopefully) temporary fork of the main PGPy project with two patches installed:
- the removal of a reference to the imghdr library, which was removed from the Python3 standard library in 3.13.
- the requirements for the cryptography library now specify v38 or higher; see PR #403
Support for EOLed versions of python (<3.9) is also removed, but this is purely a package metadata change.
When and if issue #462 is resolved and a new release of the upstream project happens, this fork will be taken down. I am not proposing to become PGPy's new maintainer, and will not be accepting pull requests or bug reports at this time.
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.
To install PGPy13, simply:
$ pip install PGPy13PGPy 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.9
Tested with: 3.13, 3.12, 3.11, 3.10, 3.9
BSD 3-Clause licensed. See the bundled LICENSE file for more details.