Quantum Computers & Passwords: What to Change
- Equivalent classical bits
- bits
- Result
- Time to crack (years)
- 10 years
- You entered
- Qubits (logical)
- 20
- You entered
Yes, a sufficiently powerful quantum computer could break most passwords and encryption used today, but that day is likely years away. You should start moving to post-quantum cryptography and using longer, random passphrases now, because data stolen today can be decrypted later.
Formula
The calculator estimates a rough “quantum risk score” based on the number of logical qubits an attacker has and the time you expect to keep data secret. The formula is:
Risk = min(100, (qubits × 5) + (years × 2))
Where:
- qubits – the number of logical (error-corrected) qubits in a quantum computer. Logical qubits are the reliable ones; physical qubits are error-prone and many are needed to make one logical qubit.
- years – how long your data must stay secret (e.g., 10 years for personal data, 30+ for medical or state secrets).
The output “Equivalent classical bits” is a rough measure of how much stronger your password needs to be compared to today’s standard (e.g., 128-bit security).
Worked Example
Using the defaults: 10 years and 20 logical qubits.
Risk = min(100, (20 × 5) + (10 × 2)) = min(100, 100 + 20) = min(100, 120) = 100
So a 20-logical-qubit quantum computer would already pose a critical threat to data that must stay secret for 10 years. The equivalent classical bits would be 20 × 2 + 40 = 80 bits, meaning you’d need an 80-bit password (about 13 random characters) just to match today’s 128-bit standard.
How Quantum Computers Break Encryption
Quantum computers don’t just try passwords faster—they use algorithms that fundamentally change the math. In 1994, Peter Shor published an algorithm that can factor large numbers and compute discrete logarithms in polynomial time. That means RSA, ECC (Elliptic Curve Cryptography), and Diffie-Hellman—the backbones of HTTPS, SSH, and most digital signatures—would be broken almost instantly on a large enough quantum computer.
For password hashing (like the hash of your login password), Grover’s algorithm (1996) gives a quadratic speedup. That means a 128-bit key would be reduced to roughly 64 bits of security—still strong, but not enough for long-term secrecy. A 256-bit key becomes about 128 bits, which is still safe for now.
What Exactly Is at Risk?
Two main things: encrypted data and authentication.
- Encrypted data – Files, emails, and messages encrypted with RSA or ECC. If an attacker records encrypted traffic today, they can store it and decrypt it later when a quantum computer is available. This is called “harvest now, decrypt later.”
- Digital signatures – Code signing, TLS certificates, and document signatures would be forgeable. An attacker could impersonate a website or sign malicious software.
- Password hashes – If a database of password hashes leaks, a quantum computer could recover passwords faster, though still not instantly for strong passwords.
What Should You Change Right Now?
You don’t need to panic, but you should take practical steps:
- Use a password manager – Generate and store random passwords of at least 16 characters. This protects against both classical and quantum attacks.
- Enable multi-factor authentication (MFA) – Even if a password is cracked, MFA adds a second layer. Prefer hardware keys or authenticator apps over SMS.
- Use post-quantum cryptography where possible – Signal has added PQXDH; some VPNs and messaging apps are rolling out hybrid protocols. For your own files, use AES-256 with a strong passphrase (AES is quantum-resistant if the key is long enough).
- Update your devices and software – NIST finalized post-quantum algorithms (CRYSTALS-Kyber for encryption, CRYSTALS-Dilithium for signatures) in 2024. Browsers and operating systems will gradually adopt them. Keep everything updated.
- For high-value data – If you’re storing secrets for decades, consider using symmetric encryption (AES-256) with a long random key, and avoid relying on RSA/ECC for long-term storage.
Common Misconceptions
“Quantum computers will crack everything instantly.” Not true. Symmetric algorithms like AES are only weakened, not broken, and Grover’s speedup is only quadratic. Also, current quantum computers have only ~1000 physical qubits with high error rates; thousands of logical qubits are needed for Shor’s algorithm.
“I need to change all my passwords today.” No. The threat is real but not imminent. However, if you reuse passwords or use short ones, now is the time to fix that. Also, any data that must remain secret for 20+ years (e.g., health records) should be protected with quantum-resistant methods.
“Quantum computers can brute-force any password by trying all combinations at once.” That’s a popular myth. Quantum computers don’t try all possibilities simultaneously; they use interference to amplify the correct answer. Grover’s algorithm still requires roughly the square root of the search space, which for a 16-character password is still astronomically large.
How to Choose a Post-Quantum Password Strategy
For most people, the simplest approach is:
- Length over complexity – A 20-character passphrase like “correct-horse-battery-staple” is easier to remember and stronger than “P@ssw0rd!”. Use a password manager to generate random ones.
- Use a passphrase for your password manager master password – Make it at least 6 random words (about 60 bits of entropy) or 12 random characters.
- Prefer hardware security keys – FIDO2/WebAuthn keys are resistant to phishing and are not vulnerable to quantum attacks on passwords, because they use public-key crypto but with a different trust model.
- For developers – Start using hybrid key exchange (e.g., X25519Kyber768) and post-quantum signatures in your protocols. NIST has standardized algorithms; libraries like liboqs are available.
Cost and Practicality
Implementing post-quantum cryptography has costs: larger key sizes, more bandwidth, and higher CPU usage. For example, Kyber-768 keys are about 1.5 KB vs. 32 bytes for ECC. On mobile devices, this can slow down handshakes slightly. But for most applications, the overhead is negligible compared to the security benefit.
For individuals, the cost is mainly time: switching to a password manager, enabling MFA, and updating software. No need to buy anything special.
Frequently Asked Questions
Will quantum computers break my bank account password? Not anytime soon. Banks use TLS (RSA/ECC) for transport, but your account password is hashed with something like bcrypt. A quantum computer could weaken that hash, but a strong random password would still take centuries to crack. The bigger risk is phishing and password reuse.
Is AES-256 quantum-safe? Yes, effectively. Grover’s algorithm reduces AES-256 to 128 bits of security, which is still considered safe. So using AES-256 for file encryption is a good post-quantum choice.
Should I stop using RSA for SSH keys? If you’re a developer, consider switching to ed25519 (which is not quantum-safe but is better than RSA) or use post-quantum hybrid keys. But for most users, it’s fine to wait until OpenSSH and other tools support PQ algorithms by default.
When will quantum computers actually break RSA? Estimates vary, but most experts say it will take at least a decade, possibly longer. The main challenge is error correction and scaling to thousands of logical qubits. Some governments are already stockpiling encrypted data, so the threat is real but not immediate.
Can I use a quantum computer to generate passwords? You don’t need one—a normal computer’s random number generator is fine. Quantum random number generators exist but are not necessary for password security.
Related
Formula used
in t | Time to crack (years) | years | 10 | 0 in q | Qubits (logical) | - | 20 | 0 out risk | Quantum risk level (0-100) | - | min(100, q * 5 + t * 2) | 0 out classic | Equivalent classical bits | bits | q * 2 + 40 | 0
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.