PQ Python

pyrage

Python bindings for rage that can still encrypt only to X25519, scrypt or SSH recipients; upstream age and rage made PQ keys the default on 1 Dec 2026.

PyPI
pyrage
Version cited
1.4.023 Aug 2026; wraps rage 0.12, Rust age crate 0.12.1
Downloads
2.8M/mo

Key exchange and encryption

No path yet

X25519 recipients only; PR #175 open

Signatures and identity

Not affected

No signatures

What to do

Re-encrypt long-lived data to age1pq1 recipients with the age (≥1.4.0) or rage (≥0.13) CLI, or cryptography HPKE, until pyrage ships PR #175.

Since 1 Dec 2026 1 Dec 2026: PR #175, Add Post-quantum support with rage 0.13, opened. The owner favors Python-side deprecation warnings and may move legacy APIs to a danger module.

Details

What pyrage 1.4.0 can do#

  • Encrypts to X25519 identities, plus SSH and scrypt recipients; the AGY report lists its defaults as x25519 and ssh-ed25519 recipients.
  • Pins the Rust age 0.12.1 crate (wraps rage 0.12), so it has no age1pq1... recipients from age 0.13.0 until pyrage bumps to age >= 0.13.0. The AGY report adds that it does not expose age::pq, only the old encrypt-only tagpq AGY.
  • pyrage.passphrase uses scrypt and is unaffected.

Upstream moved on 1 Dec 2026#

  • Go age v1.4.0 is “post-quantum by default” (age v1.4.0).
  • rage v0.13.0 and the Rust age 0.13.0 crate added age1pq1… recipients, PQ keys from rage-keygen by default, AGE_PQC_REQUIRED, and deprecated age::x25519 (rage v0.13.0).
  • Go age v1.3.0 (28 Dec 2025) already supported age1pq1... (ML-KEM-768 + X25519) recipients (details).

PR #175#

“Add Post-quantum support with rage 0.13” was opened on 1 Dec 2026 (pyrage PR #175). woodruffw favors “deprecation warnings on the Python side” and possibly a danger module for legacy APIs.

Until it ships#

  • Shell out to the age CLI: age >= 1.3.0 with age-keygen -pq (AGY report), or age ≥1.4.0 / rage ≥0.13 where PQ is the default (Claude report).
  • Or replace pyrage.x25519 with cryptography.hazmat.primitives.hpke.Suite using MLKEM1024_P384, MLKEM1024 or MLKEM768_X25519 (cryptography).
  • Data already encrypted to X25519 recipients needs re-encryption, not just new keys; age v1.4.0 gives the same advice for its own files.

2,802,037 downloads in the 30 days to 3 Dec 2026.

Sources cited on this page 3
  1. age v1.4.0 github.com
  2. rage v0.13.0 github.com
  3. pyrage PR #175 github.com

All sources across the guide