python-gnupg, PGPy
python-gnupg drives the installed gpg binary and defaults generated keys to RSA-2048; GnuPG 2.5’s PQC profile adds Kyber768 encryption but no PQ signatures. PGPy is abandoned.
- PyPI
python-gnupg,PGPy- Version cited
- 0.5.7python-gnupg 0.5.7 (29 Sep 2026); PGPy 0.6.0 (Nov 2022, abandoned)
- Downloads
- 13.2M/mo
Key exchange and encryption
PQ with action
Kyber768 via GnuPG 2.5 binary
Signatures and identity
Stopgap only
brainpoolP384 at best; no PQ
What to do
Require GnuPG 2.5+ under python-gnupg, generate PQC-profile keys instead of the RSA-2048 default, re-encrypt data held under cv25519 subkeys, and decommission PGPy.
Since 1 Dec 2026 Nothing found as of 3 Dec 2026.
Details
python-gnupg 0.5.7#
- Defaults generated keys to RSA-2048, which puts it in the “legacy” tier (python-gnupg).
- Drives whatever
gpgbinary is installed. The binary’s own default is Ed25519 + Cv25519 (ed25519/cert,sign+cv25519/encr). - Require GnuPG 2.5+ with RFC 9580/9980 PQC keys and migrate off Cv25519/Ed25519/P-256 keys AGY.
GnuPG 2.5 PQC profile#
bp384/cert,sign plus kyber768_bp256/encr: Kyber768 + brainpoolP256 for encryption, brainpoolP384 for signing (gnupg keygen.c). Brainpool curves are not CNSA-approved, and there are no PQ signatures. OpenPGP PQC is RFC 9980.
GnuPG cv25519 subkeys belong in the re-encryption inventory of public-key envelopes (playbook).
PGPy#
PGPy 0.6.0 (Nov 2022) is abandoned. The AGY report says to decommission it immediately; its static audit greps for PGPy (toolkit).
13,231,845 python-gnupg downloads in the 30 days to 3 Dec 2026; pypistats excludes distro packages, so GnuPG users are undercounted.
Full discussion: Infrastructure
Sources cited on this page 2
- python-gnupg github.com
- gnupg keygen.c github.com