PQ Python

joserfc

Full JOSE (JWS, JWE, JWT) whose default set includes ES256 and JWE ECDH-ES; stopgaps need explicit algorithms=, and ML-DSA is an open PR.

PyPI
joserfc
Version cited
1.8.03 Nov 2026
Downloads
154M/mo

Key exchange and encryption

Stopgap only

JWE ECDH-ES recommended; no PQ JWE

Signatures and identity

Stopgap only

Stopgap only; ML-DSA PR #129 open

What to do

Pass algorithms=[...] explicitly to use ES384 or PS/RS with RSA-3072+. Do not use JWE ECDH-ES for data that must stay confidential long-term. Track PR #129.

Since 1 Dec 2026 ML-DSA PR #129 updated 3 Dec 2026 (AGY report); no release since 1 Dec 2026.

Details

joserfc is Authlib’s JOSE engine and, per the AGY report, the best modern full-JOSE (JWS, JWE, JWT) successor to python-jose. It has 153,886,510 downloads in 30 days and requires Python 3.11+ and cryptography>=45.0.1.

  • Defaults. The default-allowed “recommended” set is HS256, RS256, ES256. ES384, ES512, PS* and Ed25519 are “Optional” and must be passed explicitly via algorithms=[...] (joserfc algorithms).
  • EdDSA. Ed25519/Ed448 are optional; polymorphic EdDSA is deprecated per RFC 9864.
  • JWE. ECDH-ES (P-256/X25519) is “Recommended”. Data encrypted that way is harvestable (stored ciphertexts); PQ HPKE for JWE (draft-ietf-jose-hpke-encrypt) is still a draft.
  • ML-DSA. joserfc 1.8.0’s registry does not register RFC 9964 algorithms. PR #129 adds them; the AGY report says it was updated 3 Dec 2026 and calls it “imminent”.
  • Mixed JWKS. The AGY report says it tolerates AKP keys (PR #103).
Sources cited on this page 3
  1. joserfc algorithms jose.authlib.org
  2. joserfc 1.8.0’s registry github.com
  3. PR #129 github.com

All sources across the guide