Post-quantum encryption by default: Filippo Valsorda on the NSA advisory and age 1.4Note · digest for December 5
Studio still life of moving to post-quantum encryption: an old cracked brass lock next to a new faceted graphite-green cryptographic crystal
Note3 sections≈ 4 min

Post-quantum encryption by default: Filippo Valsorda on the NSA advisory and age 1.4

Early December 2026 brought major cryptography news in rapid succession. On December 1, Go cryptography maintainer Filippo Valsorda released age 1.4 with post-quantum keys on by default. The next day, the NSA, CISA, and ONCD urged organizations to speed up their move to post-quantum cryptography. Valsorda broke down the advisory in a blog post, and the picture turned out much more urgent than usual warnings about future quantum computers.

Why the NSA is rushing now and what 256-bit curves have to do with it

Previously, post-quantum cryptography (PQC, algorithms resistant to quantum attacks) focused on 'Harvest now, decrypt later' (HNDL). Attackers record traffic or backups today to decrypt them years later. So teams updated key exchange early and pushed signatures and certificates down the road.

The December NSA advisory breaks that timeline. It calls for urgently replacing elliptic curves shorter than P-384 (including the widely used P-256, X25519, and Ed25519), older Diffie-Hellman groups, and pairing schemes like BLS12-381. Notably, RSA isn't on that list at all.

The reason is even more striking: the agencies pointed to recent breakthroughs from leading AI labs shared with the US government. That sounds like a classical math attack on 256-bit curves, since quantum computers aren't even mentioned in that section. An attack like that probably costs a fortune right now, but attacks only get cheaper over time.

Confirmation arrived on December 4: Google Chrome announced it will stop trusting ECDSA P-256 CA keys on March 15, 2027. Timelines have shrunk to months, and both encryption and signatures must move. Turn on hybrid X25519MLKEM768 in TLS (approved by the NSA under IETF RFC 10024), move private PKIs to ML-DSA (or RSA-3072 / P-384 for now), and update SSH to OpenSSH 10.6 with ssh-mldsa44-ed25519 keys.

What changed in age 1.4 and how to encrypt files now

For files, backups, and repo secrets, the upgrade is simple. In age 1.4, running age-keygen without flags creates a hybrid ML-KEM-768 + X25519 key. Breaking an archive now requires breaking both the classical curve and the post-quantum scheme.

One practical detail changed: the new public key age1pq1... grew from 62 characters to over 1,950. Passing a string that long via -r is awkward, so scripts should save it to a file and pass -R. Meanwhile, the secret key AGE-SECRET-KEY-PQ-1... stayed short.

# Generate a hybrid key (ML-KEM-768 + X25519)
age-keygen -o pq.txt

# Export the long public key to a file
age-keygen -y pq.txt > recipients.txt

# Encrypt an archive with the new key and inspect the header
tar czf - ./secrets | age -R recipients.txt -o secrets.tar.gz.age
age-inspect secrets.tar.gz.age

The age-inspect tool checks a file without needing the secret key and shows the recipient type: post-quantum mlkem768x25519 or legacy X25519. You can still create a classical key with age-keygen -pq=false, but age warns to stderr on any old key, and the migration guide warns future releases will block encrypting to them. The Rust implementation rage 0.13.0 shipped alongside it.

Migrating smoothly: compatibility, CI, and limits

Old X25519 archives still decrypt in age 1.4 without limits. You can re-encrypt a file to a new key in one pipeline in memory without writing temp files to disk.

# Re-encrypt an old archive to a PQ key in memory
age -d -i old.txt legacy.age | age -e -i pq.txt -o new.age

# CI mode: allow decrypting old files, block encrypting with old keys
AGE_PQC_REQUIRED=ALLOW_ONLY_DECRYPT age -d -i old.txt legacy.age > out.txt

The AGE_PQC_REQUIRED variable lets you roll out the change in steps: ALLOW_ONLY_DECRYPT blocks encrypting to old keys, while YES fails builds on any legacy key use (set AGE_PQC_WARNINGS=VERBOSE to see which key triggered it). In the filippo.io/age Go library, functions like GenerateX25519Identity are marked Deprecated, but existing code won't break.

Check two things before upgrading. Hardware plugins moved to new p256tagv2 and mlkem768p256tagv2 headers, so older plugin versions can't decrypt files from age 1.4. Update plugins first, such as age-plugin-yubikey to 0.6.0. Also, encrypting to SSH keys is disabled because SSH auth keys don't fit post-quantum encryption.

On the bright side, you can skip extra work where it isn't needed. Passphrase-encrypted archives (age -p) are already quantum-resistant. And if an old X25519 archive already leaked online, wrapping it again won't save it; fixing basic production flaws like RCE still matters more.

Want a deep diveVotes help us choose what to break down in detail. This material has 0 votes.
Sources · 5