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
x25519andssh-ed25519recipients. - Pins the Rust
age 0.12.1crate (wraps rage 0.12), so it has noage1pq1...recipients fromage 0.13.0until pyrage bumps toage >= 0.13.0. The AGY report adds that it does not exposeage::pq, only the old encrypt-onlytagpqAGY. pyrage.passphraseuses 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 fromrage-keygenby default,AGE_PQC_REQUIRED, and deprecatedage::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.0withage-keygen -pq(AGY report), or age ≥1.4.0 / rage ≥0.13 where PQ is the default (Claude report). - Or replace
pyrage.x25519withcryptography.hazmat.primitives.hpke.SuiteusingMLKEM1024_P384,MLKEM1024orMLKEM768_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.
Full discussion: Infrastructure
Sources cited on this page 3
- age v1.4.0 github.com
- rage v0.13.0 github.com
- pyrage PR #175 github.com