Post-Quantum Code Scanner: Find Quantum-Vulnerable Crypto in Your Code
In early December 2026, US agencies and major technology companies urged a move to post-quantum cryptography. The first step is knowing where your code uses RSA and elliptic curves. Drop a folder or paste code and get every place it exchanges keys, encrypts or signs with them, ranked P0 to P3, plus the cookies, columns and buffers that would break when larger post-quantum signatures arrive.
Your code stays with you: files are read as text in your browser. Nothing is uploaded, nothing is run, and no request is made with them. RSA and elliptic-curve cryptography are not broken today; a large enough quantum computer would break them, and data captured now could be decrypted later.
Chapters (5)
Choose the code to scan
Drop a project folder or files here
Skips node_modules, .git, dist, build, vendor, .next, lockfiles, binaries and files over 1 MB. Up to 5,000 files and 50 MB.
Or paste code
Read as text in your browser: nothing is uploaded, nothing is run, and no request is made with your code.
Will an ML-DSA token still fit?
Post-quantum signatures are much larger. Browsers only promise 4,096 bytes per cookie (RFC 6265), so check a JWT before you switch. Sizes from FIPS 204 (ML-DSA) and FIPS 203 (ML-KEM-768: 1,184-byte key, 1,088-byte ciphertext).
| Algorithm | In a 4,096-byte cookie | Whole JWT | Signature | As base64url | Public key |
|---|---|---|---|---|---|
| Ed25519 | Fits (393 B) | 387 | 64 B | 86 | 32 B |
| ES256 | Fits (393 B) | 387 | 64 B | 86 | 65 B |
| RS256 (2048-bit) | Fits (649 B) | 643 | 256 B | 342 | 256 B |
| ML-DSA-44 (post-quantum) | Fits (3,534 B) | 3,528 | 2,420 B | 3,227 | 1,312 B |
| ML-DSA-65 (post-quantum) | Too big (4,719 B) | 4,713 | 3,309 B | 4,412 | 1,952 B |
| ML-DSA-87 (post-quantum) | Too big (6,477 B) | 6,471 | 4,627 B | 6,170 | 2,592 B |
Cookie size counts the name "token=" plus the JWT. RS256 public key shown as the 256-byte modulus. Attributes such as Path and Expires also count toward the cookie limit.
Loading…
Sample report · illustrative data
Sample result: a fictional "Northwind" repository
Ten files from a made-up API, its nginx and SSH configuration, a release script and one node_modules file (skipped).
Summary
- Files scanned
- 9 (1 skipped: in node_modules)
- P0: protect data now
- 7: TLS 1.2 ceiling, classical TLS groups, DHE, SSH key exchange, RSA-OAEP key wrapping, ECDH, a committed private key
- P1: long-lived trust and size hazards
- 9: ES256 JWT signing key, JWT in a cookie, three narrow columns, a 4 KB header limit, SSH host keys, cosign release signing
- P2: short-lived and legacy
- 2: a 1024-bit RSA key, 3DES in the cipher list
- Already post-quantum
- 1: the Go gateway offers X25519MLKEM768
Findings, most urgent first
| Priority | File:line | Finding | Fix |
|---|---|---|---|
| P0 | deploy/keys/staging-signing.pem:1 | Private key committed to the code | Remove from history, rotate, load from a secrets manager |
| P0 | deploy/nginx/northwind.conf:5 | TLS key exchange pinned to classical groups | ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1 |
| P0 | northwind-api/src/crypto/wrap.ts:5 | RSA encryption of 10-year archive keys | Wrap data keys with ML-KEM (hybrid) or KMS envelope encryption |
| P0 | deploy/ssh/sshd_config:2 | SSH key exchange without a post-quantum hybrid | Add sntrup761x25519-sha512 or mlkem768x25519-sha256 |
| P1 | northwind-api/src/auth/session.ts:8 | JWT stored in a cookie | Keep a short session id in the cookie before switching to ML-DSA |
| P1 | northwind-api/prisma/schema.prisma:4 | Column "signature" holds 255 characters | Widen it before signatures grow to 2,420-4,627 bytes |
Will an ML-DSA JWT fit in a cookie? (300-character header + payload)
| Algorithm | Signature | Whole JWT | 4,096-byte cookie |
|---|---|---|---|
| ES256 | 64 B | 387 | Fits |
| ML-DSA-44 | 2,420 B | 3,528 | Fits |
| ML-DSA-65 | 3,309 B | 4,713 | Too big |
| ML-DSA-87 | 4,627 B | 6,471 | Too big |
Migration waves (PlayCISO's suggested order)
- Wave 1 (7): inventory and hybrid key exchange: nginx, sshd_config, wrap.ts, the committed key.
- Wave 2 (5): size hazards and configurable algorithms: schema.prisma, 001_webhooks.sql, session.ts, nginx header buffers.
- Wave 3 (4): long-lived signatures: the JWT signing key, SSH host keys, cosign release signing.
- Wave 4 (2): the rest: replace the 1024-bit RSA key and 3DES now.
Made-up example data. Your own run uses your inputs. Downloads of the full report need Pro.
TL;DRWhat this scanner does
5 points
- Drop a project folder, a few files or pasted code and get an inventory of the cryptography a large quantum computer would break: RSA and elliptic-curve key exchange, encryption and signatures.
- Each finding has the file, the line, the algorithm, a priority from P0 to P3, why it matters and the fix. Key exchange comes first, because traffic captured today could be decrypted later.
- Flags what would break when you switch to ML-DSA signatures: JWTs in cookies, signature and token columns that are too narrow, tight HTTP header limits and fixed-size signature buffers.
- Groups the work into four migration waves and shows, for your own token size, whether an ML-DSA-signed JWT still fits in a cookie.
- Runs in your browser over many languages and config formats. Your code is never uploaded and never run.
What this checks
| Area | What we look for |
|---|---|
| Key exchange and encryption (P0) | ECDH, X25519 and X448 key agreement, RSA-OAEP and PKCS#1 v1.5 encryption, finite-field DH, JWE RSA-OAEP / ECDH-ES, KMS encryption keys, TLS group settings without ML-KEM (nginx, Node, Go, Java, OpenSSL, HAProxy), TLS 1.2 as the ceiling, SSH KexAlgorithms without a post-quantum hybrid |
| Committed private keys (P0) | PEM and OpenSSH private keys in the code, with key material shortened in the results |
| Signatures (P1 / P2) | JWT algorithms (RS256, PS256, ES256, EdDSA), ECDSA, RSA, Ed25519 and DSA signing APIs, SSH key types and host key lists, code signing (cosign, signtool, codesign, jarsigner, gpg), certificates made by OpenSSL or Terraform, cloud KMS key types |
| Size hazards for ML-DSA (P1) | JWTs stored in cookies, signature, key and token columns under 4,627 characters (SQL, Prisma, Django, SQLAlchemy, migrations), HTTP header limits, fixed signature buffers |
| Weak or legacy (P2) | RSA keys under 2048 bits, MD5 and SHA-1 signatures, DES, 3DES, RC4 and Blowfish |
| Already post-quantum (P3) | ML-KEM, X25519MLKEM768, ML-DSA, SLH-DSA, Kyber, Dilithium, SPHINCS+, sntrup761, liboqs |
How findings are prioritised
- P0: Key exchange or encryption protecting data that must stay secret for years (harvest now, decrypt later), and private keys committed to the code.
- P1: Signatures with long-lived trust (code signing, certificate authorities, firmware, SSH host keys, JWT signing keys) and size hazards that would break the swap to ML-DSA.
- P2: Short-lived signatures and weak legacy algorithms.
- P3: Information, and code that is already post-quantum.
The migration waves
PlayCISO's suggested order, not a standard:
- Inventory and hybrid key exchange. Turn on X25519MLKEM768 for TLS and a post-quantum hybrid for SSH, and remove committed private keys.
- Size hazards and configurable algorithms. Widen columns, buffers and header limits, take large tokens out of cookies, and put algorithm choices in configuration.
- Long-lived signatures. Code signing, certificate authorities, firmware, SSH host keys and JWT signing keys.
- The rest. Short-lived signatures, and replacing weak legacy algorithms now.
What it cannot do
- It does not scan your dependencies or managed services: build a CBOM for those.
- It does not check what your live servers negotiate: use the Post-Quantum TLS Checker for that.
- It matches patterns line by line and cannot follow data flow, so read each finding and its file.
Frequently asked questions
Is my code uploaded anywhere?
No. The browser reads the files as text and the scan runs on your device with pattern matching. No request is made with your files and nothing is stored. Folders such as node_modules and .git are skipped before they are even read.
Is RSA or elliptic-curve cryptography broken today?
No. No quantum computer today can break them. A large enough one could, and anything encrypted with a classical key exchange can be recorded now and decrypted later ("harvest now, decrypt later"). That is why key exchange and encryption are P0 and signatures come later.
What do P0 to P3 mean?
P0: Key exchange or encryption protecting data that must stay secret for years (harvest now, decrypt later), and private keys committed to the code. P1: Signatures with long-lived trust (code signing, certificate authorities, firmware, SSH host keys, JWT signing keys) and size hazards that would break the swap to ML-DSA. P2: Short-lived signatures and weak legacy algorithms. P3: Information, and code that is already post-quantum.
Why does it look at cookies, columns and header limits?
ML-DSA signatures are 2,420 to 4,627 bytes (FIPS 204), against 64 bytes for Ed25519 or ES256. A JWT signed with ML-DSA-65 is over 4,700 characters with a modest payload, which is more than browsers promise to keep in one cookie. Columns, buffers and header limits sized for classical signatures fail or truncate silently, so fix them before you switch.
Which languages and files does it read?
JavaScript and TypeScript, Python, Go, Java and Kotlin, C#, Rust, Ruby, PHP, C and C++, shell scripts, YAML, JSON, TOML and INI, Dockerfiles, nginx, Apache and HAProxy configuration, SSH configuration, Terraform, SQL and Prisma schemas, and PEM files.
What can it miss?
It reads your code, not your dependencies, so cryptography inside a library or a managed service will not show up: list those with a CBOM. Pattern matching also cannot follow data flow, so a key generated in one file and used in another is judged from each line alone. Treat the result as a strong first inventory, not a proof.
What should I do first?
Turn on hybrid post-quantum key exchange where you terminate TLS and SSH (X25519MLKEM768, sntrup761x25519 or mlkem768x25519), remove committed private keys, then fix the size hazards so the signature swap later is a configuration change.
More tools like this
Related tools and labs, with new picks every day.