DEV Community

Cover image for AI and post-quantum cryptography: don't panic, but take inventory

AI and post-quantum cryptography: don't panic, but take inventory

Thomas Bonnet on December 05, 2026

Introduction Early December 2026, an announcement was enough to raise an eyebrow: an AI had reportedly found new things about the crypto...
Collapse
 
kling4ai-production profile image
Kling4 AI •

Decoding the JWT header first to catch RS256 and ES256 tokens is a good sanity check. Even with ANSSI and CIRG confirming no immediate practical break on lattice schemes, doing an algorithm inventory now beats scrambling when migration deadlines hit.

Collapse
 
visionwei profile image
Wei Bin •

Thomas, the inventory framing is what I needed: I run an API service and my JWTs are RS256, so your grep lands on real work, not theory. The part I had missed is SSH and deploy keys: a grep of ./src would never find those. I am starting with one token and one certificate, and writing down where algorithm lives.

Collapse
 
syedfahads profile image
Syed Fahad •

for the SSH line, OpenSSH 10 already made mlkem768x25519 the default key exchange, so the transport side may be covered once both ends update. the ed25519 keys signing your commits are still classical though

Collapse
 
thomasbnt profile image
Thomas Bonnet •

oh that nice!

Collapse
 
paxtechnologyservices profile image
PTS •

Your grep for RS256 and ES256 is a solid start. I'd add a script-level pass for Bitcoin, because "already published" is uneven there.

P2PK puts the public key in the locking script from the first confirmation, so those coins have been in the inventory the whole time. P2PKH only reveals the key when the output is spent, or when an address is reused. The draft BIPs people have been arguing about this week are mostly about that first group, plus spent and reused addresses, not a freeze of every coin.

So the inventory I'd add isn't only "do we use secp256k1." It's which UTXOs have already revealed a public key.

I have a small in-browser checker for that. Paste a scriptPubKey or an address. Nothing is uploaded, and it refuses keys or seed words:

https://agents.paxtechnologyservices.com/tools/bitcoin-script-type-checker/?utm_source=devto&utm_medium=comment&utm_campaign=pqc-inventory

Collapse
 
thomasbnt profile image
Thomas Bonnet •

Good idea!

Collapse
 
smtahosin profile image
S M Tahosin •

thanks Thomas!! i ran your grep at like 6:50 lol... RS256 popped up in 2 places, one config file untouched since 2023 xD whole thing took 10 mins, way less scary than the headlines :D

Collapse
 
thomasbnt profile image
Thomas Bonnet •

Aha thanks for reading !

Collapse
 
smtahosin profile image
S M Tahosin •

haha anytime Thomas! that config file from 2023 is still sitting there, i've added it to my list lol. ten minutes well spent honestly. thanks again :D

Collapse
 
paullovelace profile image
Paul Lovelace •

Ran your grep mentally against my own stuff and immediately thought of the one place it won't reach — the signing keys baked into CI years ago that nobody owns anymore. The RS256/ES256 check is a great first pass, but the inventory that scares me is the long-lived stuff: code-signing certs, old deploy keys, tokens issued before anyone thought about rotation. The ANSSI end-of-2030 deadline looks far away until you count how many of those you have. Did anything in your own inventory surprise you when you ran it?

Collapse
 
thomasbnt profile image
Thomas Bonnet •

Good point: my grep only looks at ./src, so it won't find forgotten CI signing keys, old deploy keys or code-signing certs. I don't have a surprise of my own to report here, but I'd add an owner and a creation date to every item in that inventory. If nobody owns a key, that's the first thing to fix.

Collapse
 
calemanurquiza profile image
Carlos María Alemán Urquiza •

"What happens at your providers" is a part grep can't reach, but contracts can. When a vendor agreement comes up for renewal, asking for their post-quantum migration plan and a duty to notify algorithm changes costs little, and turns an unknown in the inventory into a dated answer.

Collapse
 
token_alphabet_bb8b22df52 profile image
Token Alphabet •

The grep for RS256 and ES256 is a good first pass. One place it will not catch is anything built on secp256k1: Bitcoin and Ethereum wallets, and services that verify their signatures. There the algorithm cannot be swapped with one line of config, because the public key is tied to the address and, once used, stays readable on chain forever. So for those systems the inventory I would add is a list of which keys are already published, not only which algorithms are in use. Did the ANSSI note say anything about signatures that must stay verifiable for decades, like code signing or archives?

Collapse
 
thomasbnt profile image
Thomas Bonnet •

Great point, thanks! My grep would miss code that only mentions "secp256k1", and listing already published keys is a useful addition.

As for ANSSI: this recent note doesn't address signatures that must stay verifiable for decades, code signing or archives.

Collapse
 
member_7c8c7e8d profile image
Max K. •

This inventory-first take is much healthier than the usual panic headlines. When we audited a small Python API recently, the app code itself was clean, and the hidden RS256 and legacy TLS assumptions were sitting inside reverse-proxy configs, CI deploy keys, and third-party webhook verifiers rather than ./src. Tracking where algorithms are hardcoded versus configurable is the real bottleneck for crypto agility. Have you seen any mainstream JWT libraries in Node or Python start exposing experimental RFC 9964 ML-DSA hooks yet, or are most teams still stuck waiting on upstream SDK support?