Q-Day is the day a quantum computer can break RSA and elliptic-curve cryptography. Y2Q ("years to quantum") is the countdown to that day. The name copies Y2K, with one large difference: nobody knows the date.
You cannot plan with an unknown date. But you can calculate if you are late. This post shows how.
Mosca's Inequality
Michele Mosca reduced the problem to three numbers:
| Symbol | Meaning | Who knows it |
|---|---|---|
| X | Years your data must stay secret | You |
| Y | Years your migration takes | You |
| Z | Years until Q-Day | Nobody |
If X + Y > Z, data that you send today is at risk, because an attacker can record it now and decrypt it after Q-Day.
Which Z to Use
Use the public deadlines. They are the dates that your customers and auditors will use:
- 2030: the NIST plan in IR 8547 deprecates quantum-vulnerable public-key algorithms.
- 2031: the UK NCSC wants priority migrations complete.
- 2035: the algorithms are disallowed in the NIST plan.
The research moves in one direction. The estimate to factor RSA-2048 went from about 20 million noisy qubits in 2019 to fewer than one million in 2025. From December 2026, the deadlines give a Z of 4 to 9 years.
Learn this topic with guided video lessons
Go beyond reading — follow expert video guidance and try the examples in your own environment.
Browse Courses →Calculate It
Save this as y2q.sh:
#!/usr/bin/env bash
# Usage: ./y2q.sh <system> <secrecy_years> <migration_years> [years_to_q_day]
system="$1"; x="$2"; y="$3"; z="${4:-5}"
margin=$(( z - x - y ))
if (( margin < 0 )); then
echo "LATE $system: X+Y=$(( x + y )) years, Z=$z years, ${margin#-} years over"
else
echo "OK $system: X+Y=$(( x + y )) years, Z=$z years, $margin years of margin"
fiRun it for each system:
./y2q.sh "customer-db backups" 10 3
./y2q.sh "ci build logs" 1 1
./y2q.sh "service mesh mTLS" 0 2LATE customer-db backups: X+Y=13 years, Z=5 years, 8 years over
OK ci build logs: X+Y=2 years, Z=5 years, 3 years of margin
OK service mesh mTLS: X+Y=2 years, Z=5 years, 3 years of marginThe result gives you an order of work. It is more useful than a discussion about when Q-Day comes.
What to Do With a LATE Result
- Protect the key exchange now. Hybrid ML-KEM key exchange (
X25519MLKEM768) is in OpenSSL 3.5, Go 1.24 and OpenSSH 10. From the day you enable it, new traffic is protected against "record now, decrypt later". - Decrease X. Do not keep data longer than necessary. Shorter retention is a valid control.
- Decrease Y. Automate certificate and configuration changes, so that the next algorithm change is fast.
Get weekly IT automation tips
Docker, Ansible, Terraform, MLOps — curated insights delivered to your inbox. No spam.
Subscribe Free →What Does Not Change
AES-256 and SHA-384 stay secure. Y2Q is about public-key cryptography: key exchange and signatures.
Related
Ready to learn by doing?
Stop reading tutorials — start building. Expert video courses with practical examples you can follow at your own pace.
Related Articles
NSA Post-Quantum Push: A DevOps Checklist
The NSA told national security system operators to accelerate post-quantum migration now. A short checklist for DevOps teams: inventory, upgrade, verify.
Post-Quantum Cryptography Guide
Prepare your infrastructure for quantum computing threats with post-quantum cryptography migration strategies and practical implementation steps.
Ubuntu 26.04 Makes sudo-rs Default
Ubuntu 26.04 LTS replaces the 44-year-old C sudo with sudo-rs, a Rust rewrite. Learn what changes, why it matters for security, and what else ships.
YAML for DevOps Engineers
Master YAML for DevOps configuration. Scalars, lists, maps, anchors, multi-line strings, and common pitfalls to avoid in pipelines.
YAML Syntax Guide for DevOps
Master YAML syntax for DevOps tools. Scalars, lists, maps, anchors, multi-line strings, and common gotchas with pipeline examples.
10 Things to Do After Installing OpenClaw
Just installed OpenClaw? Here are 10 essential setup steps to get the most out of your AI agent — from personality to automation.
Explore topics
Browse more articles on the topics covered here.